esc key action in UMG

Hi,

I know it’s a simple question, but how can I access my input mappings through UMG, like I can access them in any other actor blueprint? I’d like for the user to be able to press the ESC button on the keyboard and the UMG to be turned off.

Thanks

Hello, this would be one way to do it.

Go to the graph and make an override On Key Down.

Should work. Have a nice day.

I have a problem, I got the same blueprint created but nothing is happening. This is how I got them connected.

I even tried the short tutorial from Rudy on a blank project and I still got no results:

I’ve found the solution! answer: UI Widget key events OnKeyDown/OnKeyUp not generated - UI - Epic Developer Community Forums

The problem was that the widget was not focusable by default.
The short version is that the checkbox “Is Focusable” in the widget should be turned on (user widget > first item in the hierarchy > interaction rollout > is Focusable)