How to hide the UI with key input

Thanks for the reply!
I have one more problem.


I tried to do the same thing with the shift button.
Shift no longer responds on controller. What should I do?