[BUG?] Bind keys to UMG buttons

Hello, I’m trying to follow this setup (binding umg buttons to input keys - Blueprint - Unreal Engine Forums) to bind some UMG buttons to keyboard keys, but either ‘set keyboard focus’ or ‘on key down’ don’t work and I’m kinda stuck with my project.

I attached my setup, it’s pretty much the same as the forum post created into the first person template, but it doesn’t work.

Thank you.

What does the note say? Hover your mouse above it

It says “The execution path doesn’t end with a return node”, I then put then another print and linked it to the return node, the problem is still present tho. Nothing happens.

First off it means false is not set into a return node, In functions it must allways retunr a value, even if false, can’t have a statement without a return. So add another return that has Unhandled as value.

  1. Duplicate return
  2. Connect false to second return.
  3. Add Unhandled, as opposed to Handled, as value for second Return.

Then if still the issue persists I’ll try to help some more.

Thank you for the explanation but no luck yet on the project. This is what my widget graph looks like now.

Second suggestion;

Try in the function, adding the node “input mode Game and UI” after true, or just the “Input mode UI” node

No luck again. But does it actually work for you? Maybe it’s a bug.

Hello Ikos,

After taking a look at the engine version and running few tests I was able to reproduce this issue on our end. I have written up a report ( UE-26770) and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. As a note, this issue does not appear to be present in the 4.10 version of the engine if it is viable for you to use the latest release instead of the preview. I hope that this information helps. Thank you for your time and information.

Make it a great day