Input Get Key Down

Hey. I need to enable and disable the UI menu by pressing keys.
I tried to use events like unity from the drop-down list as well as the events of unity itself, but nothing worked.

Of course I would like to get a universal method for PC and VR if possible.Does anyone have any experience in this?

Everything has broken absolutely for me. Now even turning off the keyboard does not work