# Pressing widget button with mouse click lose keyboard Enhanced input.

**URL:** <https://forums.unrealengine.com/t/pressing-widget-button-with-mouse-click-lose-keyboard-enhanced-input/1520104>\
**Category:** UI\
**Tags:** focus, Input, unreal-engine, question, Blueprint\
**Created:** [December 12, 2023, 3:43pm UTC](https://forums.unrealengine.com/t/pressing-widget-button-with-mouse-click-lose-keyboard-enhanced-input/1520104 "2023-12-12T15:43:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sms726837](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sms726837](https://forums.unrealengine.com/u/sms726837)\
**Post date:** [December 12, 2023, 3:43pm UTC](https://forums.unrealengine.com/t/pressing-widget-button-with-mouse-click-lose-keyboard-enhanced-input/1520104/1 "2023-12-12T15:43:52Z")

</div>

In my project, some widget buttons are pressed during gameplay (like in Vampire Survivors). However, once a widget button is pressed (and the widget is removed from parent), keyboard input is ignored. The keyboard button can be re-entered, but not long-pressed across before and after the widget appears. How can I prevent the widget buttons to make keyboard inputs disabled?  
My keyboard inputs are using Enhanced Input, UE5.2.

---

<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:** [December 12, 2023, 4:14pm UTC](https://forums.unrealengine.com/t/pressing-widget-button-with-mouse-click-lose-keyboard-enhanced-input/1520104/2 "2023-12-12T16:14:03Z")

</div>

> [@sms726837](#):
>
> once a widget button is pressed (and the widget is removed from parent)

Try calling this right after removing it:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/3/33351483e3608a10afa688384d69d93e39671d3a.png)

---

<div class="post-metadata">

**Author:** ![sms726837](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sms726837](https://forums.unrealengine.com/u/sms726837)\
**Post date:** [December 13, 2023, 8:43am UTC](https://forums.unrealengine.com/t/pressing-widget-button-with-mouse-click-lose-keyboard-enhanced-input/1520104/3 "2023-12-13T08:43:40Z")

</div>

Yes, I tried Set focus on Viewport, Set Input Mode and Show mouse cursor nodes but they didn’t work.

---

<div class="post-metadata">

**Author:** ![Gatero1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gatero1](https://forums.unrealengine.com/u/Gatero1)\
**Post date:** [February 23, 2024, 3:05pm UTC](https://forums.unrealengine.com/t/pressing-widget-button-with-mouse-click-lose-keyboard-enhanced-input/1520104/4 "2024-02-23T15:05:56Z")

</div>

Yea, Im facing the same problem. At least for me, I want to use the widget as part of my gameplay, but if Im pressing double axis (w and d) and I click the button, for some reason my character will start ignoring one of the axis (just goes forward or right, instead of diagonally). Hope someone can find a workaround for this

---

<div class="post-metadata">

**Author:** ![Paul\_Justice](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/paul_justice/32/468700_2.png) [@Paul\_Justice](https://forums.unrealengine.com/u/Paul_Justice)\
**Post date:** [April 20, 2024, 5:19am UTC](https://forums.unrealengine.com/t/pressing-widget-button-with-mouse-click-lose-keyboard-enhanced-input/1520104/5 "2024-04-20T05:19:38Z")

</div>

Unchecking “IsFocusable” on the widget button worked for me.

Found here: [InputAxis stops working after clicking Widget button](https://forums.unrealengine.com/t/inputaxis-stops-working-after-clicking-widget-button/323608/12)
