How to set UI hidden again with a different input?

I created a widget menu. The widget is created on BeginPlay then hidden after creation.
I can show and hide it using the first assigned Inputs [CTRL + `] keys.

But I can’t hide it by pressing the Esc Key. Am I missing something?

~Edit~
I just realized with this. Hiding it again with CTRL `. The game stops accepting the mouse input.

do u run this in editor?
the esc key can not use on editor mode.
because esc key make exit the game.
but when u package the game, and run exe, esc key work fine.

No.