# \[BUG?\] Bind keys to UMG buttons

**URL:** <https://forums.unrealengine.com/t/bug-bind-keys-to-umg-buttons/346772>\
**Category:** UI\
**Tags:** unreal-engine, bug-report, Blueprint, question, UMG\
**Created:** [February 8, 2016, 11:05am UTC](https://forums.unrealengine.com/t/bug-bind-keys-to-umg-buttons/346772 "2016-02-08T11:05:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ikos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ikos](https://forums.unrealengine.com/u/Ikos)\
**Post date:** [February 8, 2016, 11:05am UTC](https://forums.unrealengine.com/t/bug-bind-keys-to-umg-buttons/346772/1 "2016-02-08T11:05:58Z")

</div>

Hello, I’m trying to follow this setup ([binding umg buttons to input keys - Blueprint - Unreal Engine Forums](https://forums.unrealengine.com/showthread.php?54237-binding-umg-buttons-to-input-keys&p=255646&viewfull=1#post255646)) 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.

---

<div class="post-metadata">

**Author:** ![ImperiumPandemonium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ImperiumPandemonium](https://forums.unrealengine.com/u/ImperiumPandemonium)\
**Post date:** [February 8, 2016, 12:59pm UTC](https://forums.unrealengine.com/t/bug-bind-keys-to-umg-buttons/346772/2 "2016-02-08T12:59:27Z")

</div>

What does the note say? Hover your mouse above it

---

<div class="post-metadata">

**Author:** ![Ikos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ikos](https://forums.unrealengine.com/u/Ikos)\
**Post date:** [February 8, 2016, 5:05pm UTC](https://forums.unrealengine.com/t/bug-bind-keys-to-umg-buttons/346772/3 "2016-02-08T17:05:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ImperiumPandemonium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ImperiumPandemonium](https://forums.unrealengine.com/u/ImperiumPandemonium)\
**Post date:** [February 8, 2016, 10:20pm UTC](https://forums.unrealengine.com/t/bug-bind-keys-to-umg-buttons/346772/4 "2016-02-08T22:20:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Ikos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ikos](https://forums.unrealengine.com/u/Ikos)\
**Post date:** [February 8, 2016, 10:48pm UTC](https://forums.unrealengine.com/t/bug-bind-keys-to-umg-buttons/346772/5 "2016-02-08T22:48:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ImperiumPandemonium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ImperiumPandemonium](https://forums.unrealengine.com/u/ImperiumPandemonium)\
**Post date:** [February 9, 2016, 7:19am UTC](https://forums.unrealengine.com/t/bug-bind-keys-to-umg-buttons/346772/6 "2016-02-09T07:19:57Z")

</div>

Second suggestion;

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

---

<div class="post-metadata">

**Author:** ![Ikos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ikos](https://forums.unrealengine.com/u/Ikos)\
**Post date:** [February 10, 2016, 4:39pm UTC](https://forums.unrealengine.com/t/bug-bind-keys-to-umg-buttons/346772/7 "2016-02-10T16:39:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [February 10, 2016, 7:30pm UTC](https://forums.unrealengine.com/t/bug-bind-keys-to-umg-buttons/346772/8 "2016-02-10T19:30:18Z")

</div>

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
