# how to bind a custum event from a blueprint to press a specific key?

**URL:** <https://forums.unrealengine.com/t/how-to-bind-a-custum-event-from-a-blueprint-to-press-a-specific-key/484472>\
**Category:** UI\
**Tags:** Input, keys, unreal-engine, Widget, question, key-bind\
**Created:** [June 5, 2021, 8:55pm UTC](https://forums.unrealengine.com/t/how-to-bind-a-custum-event-from-a-blueprint-to-press-a-specific-key/484472 "2021-06-05T20:55:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aneurysm.FZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aneurysm.FZ](https://forums.unrealengine.com/u/Aneurysm.FZ)\
**Post date:** [June 5, 2021, 8:55pm UTC](https://forums.unrealengine.com/t/how-to-bind-a-custum-event-from-a-blueprint-to-press-a-specific-key/484472/1 "2021-06-05T20:55:35Z")

</div>

So i have a blueprint and a character, and i want to link the press of a button in the widget to have the effect of simullating a key press on the level blueprint, does anyone know how?

 ![340783-screenshot.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/1/781eca1c195705beac897a3f42fe1fd3d8d290f9.png)

---

<div class="post-metadata">

**Author:** ![AleMarcati](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alemarcati/32/1139690_2.png) [@AleMarcati](https://forums.unrealengine.com/u/AleMarcati)\
**Post date:** [June 5, 2021, 8:57pm UTC](https://forums.unrealengine.com/t/how-to-bind-a-custum-event-from-a-blueprint-to-press-a-specific-key/484472/2 "2021-06-05T20:57:35Z")

</div>

You could just create another custom event that when fired connects to the same node chain that the key press event is connected.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 6, 2021, 8:18am UTC](https://forums.unrealengine.com/t/how-to-bind-a-custum-event-from-a-blueprint-to-press-a-specific-key/484472/3 "2021-06-06T08:18:48Z")

</div>

You’re already there. Just connect the node to the stuff you want to run…

---

<div class="post-metadata">

**Author:** ![Aneurysm.FZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aneurysm.FZ](https://forums.unrealengine.com/u/Aneurysm.FZ)\
**Post date:** [June 8, 2021, 11:35pm UTC](https://forums.unrealengine.com/t/how-to-bind-a-custum-event-from-a-blueprint-to-press-a-specific-key/484472/4 "2021-06-08T23:35:09Z")

</div>

i want to simulate the press of a “E” key

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 9, 2021, 7:11am UTC](https://forums.unrealengine.com/t/how-to-bind-a-custum-event-from-a-blueprint-to-press-a-specific-key/484472/5 "2021-06-09T07:11:55Z")

</div>

But when you simulate that, all that will happen is a group of nodes gets triggered. So you might as well just trigger the nodes, no?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [June 9, 2021, 10:28am UTC](https://forums.unrealengine.com/t/how-to-bind-a-custum-event-from-a-blueprint-to-press-a-specific-key/484472/6 "2021-06-09T10:28:04Z")

</div>

I think what you trying to do is possible but only in C++, but generally it’s not needed

Simply make a function in character that single role is to receive key press of E, call it on press of E and simply call it here too. It makes not much difference. In proper game programing practice character should have set of functions that triggers actions and key binding should trigger them as it should let other code to trigger them.
