Annoying UX while the CLI menu is opened

Hi. When the agent asks me something while the menu is opened, if I press any key to interact with the menu, it iteracts with the agent question instead. This is annoying because I am using the menu and then suddenly the agent asks me something and I press enter or esc accidentally.

What I want: While the menu is opened, keyboard keys affects only the menu.