How to detect if any key has been pressed down in UMG?

Hello Everyone,

How do I put an action that is triggered when any key Has Been pressed down on umg?

There is no Event in UMG for key being pressed, your best bet is to set up the event in the player controller and forward it to UMG.

If you want to set up your own event in UMG, there is a node you can use to check if the key is pressed at that point in time. Get Owning Player > Is Input Key Down.

Hope this helps :slight_smile:

thx mate ç.ç

Thanks , this info helped me a lot :slight_smile:

You can over-ride the “On Key Down” function in a UMG blueprint by going to graph mode and selecting from the over-ride functions list.

You need to have keyboard focus on the widget, not always ideal

I gave an answer to a similar question