# UMG Interrupts KeyPress Events on Mouse Event

**URL:** <https://forums.unrealengine.com/t/umg-interrupts-keypress-events-on-mouse-event/323076>\
**Category:** UI\
**Tags:** click-event, unreal-engine, mouse-event, question, Blueprint, UMG\
**Created:** [June 26, 2015, 12:33am UTC](https://forums.unrealengine.com/t/umg-interrupts-keypress-events-on-mouse-event/323076 "2015-06-26T00:33:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zeetu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zeetu](https://forums.unrealengine.com/u/Zeetu)\
**Post date:** [June 26, 2015, 12:33am UTC](https://forums.unrealengine.com/t/umg-interrupts-keypress-events-on-mouse-event/323076/1 "2015-06-26T00:33:25Z")

</div>

Goal: Let users shift drag items in inventory to split it.  
Bug: First time after making inventory panel visible mouse click events will interrupt the Shift modifier. Second time works fine. It looks like when a UniformGridPanel gets focus it interrupts the keyboard held down event.

I also tried using the Is Key Pressed function but it returned false as well.

**Left Shift Modifier**

 ![47938-6-25-2015-5-09-11-pm-88ce.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/9/949557aee8b828853f62ebb85354b2af16f460f6.png)

---

<div class="post-metadata">

**Author:** ![SomeDude12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SomeDude12](https://forums.unrealengine.com/u/SomeDude12)\
**Post date:** [May 2, 2021, 1:37pm UTC](https://forums.unrealengine.com/t/umg-interrupts-keypress-events-on-mouse-event/323076/2 "2021-05-02T13:37:09Z")

</div>

I get the same with ctrl and left mouse button… makes holding modifiers unusable ☹ Current version 4.25.3 Linux

---

<div class="post-metadata">

**Author:** ![SomeDude12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SomeDude12](https://forums.unrealengine.com/u/SomeDude12)\
**Post date:** [May 8, 2021, 1:39pm UTC](https://forums.unrealengine.com/t/umg-interrupts-keypress-events-on-mouse-event/323076/3 "2021-05-08T13:39:42Z")

</div>

If any1 come across this check [https://forums.unrealengine.com/t/is-input-key-down-in-widget-issue/72271/9](https://forums.unrealengine.com/t/is-input-key-down-in-widget-issue/72271/9+) If your widget is focusable then upon clicking on it, it will gain focus and interrupt key pressed events. Solution is set IsFocusable=false on your root widget or i guess individual widgets if that won’t work.
