# Key pressed imitation

**URL:** <https://forums.unrealengine.com/t/key-pressed-imitation/476959>\
**Category:** UI\
**Tags:** unreal-engine, Widget, question, key-bind\
**Created:** [January 8, 2021, 1:46pm UTC](https://forums.unrealengine.com/t/key-pressed-imitation/476959 "2021-01-08T13:46:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6571dbb3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6571dbb3](https://forums.unrealengine.com/u/anonymous_user_6571dbb3)\
**Post date:** [January 8, 2021, 1:46pm UTC](https://forums.unrealengine.com/t/key-pressed-imitation/476959/1 "2021-01-08T13:46:00Z")

</div>

To preface, this might not be the best way accomplish what I need, but I am trying to get (let’s say for the keyboard bind numbers 1 - 4) I have mapped to do certain things on the player character BP. I need to have these remapped to a Widget menu drop down to fire them off from there _ **without** _ having to press any keys at all. I haver already looked at event dispatchers but I don’t think they will work for what I need. Is there a better way or even a way to do this?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 8, 2021, 1:59pm UTC](https://forums.unrealengine.com/t/key-pressed-imitation/476959/2 "2021-01-08T13:59:23Z")

</div>

> I haver already looked at event  
> dispatchers but I don’t think they  
> will work for what I need.

It would.

Have _the player character BP_ register a call sent by the widget and hook it up to the same nodes the keypress  
triggers.

* * *

Alternatively, have a _Custom Event_ in the _the player character BP_ and have the widget call that instead.
