# How can I not consume modifier keys in the GetKeyDown override function widget?

**URL:** <https://forums.unrealengine.com/t/how-can-i-not-consume-modifier-keys-in-the-getkeydown-override-function-widget/476948>\
**Category:** UI\
**Tags:** key, Input, unreal-engine, Widget, UE4, question\
**Created:** [January 8, 2021, 10:36am UTC](https://forums.unrealengine.com/t/how-can-i-not-consume-modifier-keys-in-the-getkeydown-override-function-widget/476948 "2021-01-08T10:36:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David.Borrego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Borrego](https://forums.unrealengine.com/u/David.Borrego)\
**Post date:** [January 8, 2021, 10:36am UTC](https://forums.unrealengine.com/t/how-can-i-not-consume-modifier-keys-in-the-getkeydown-override-function-widget/476948/1 "2021-01-08T10:36:47Z")

</div>

I have a 3D widget which open a PDF in a webBrowser, I use PDFjs to visualice the PDF, and with the widget interacction component I can interact with it. PDFjs has shortcuts to do differents fuctions, like rotate the PDF, go to the next page…, I don’t want to use this shortcuts directly, i want to call this shortcuts in buttons inside the widget, so, when I press a button, I send this key to the widget with the “Press Button” node.

 ![326608-next-page.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/9/0c966e0fad90b5e86aa54bad8a6180d4311c6403.png)

This works perfectly. The problem comes when I try to send a modifier keys (ctrl, shift, alt), because the shortcut to open a new pdf is ctrl+O, but I don’t want to consume the ctrl key until the O key arrives. In the widget, I manage to the keys with “OnPreviewKeyDown” override function and seems to work well, but the I can’t do the shortcut with this way. I send both keys in a row, so I don’t know how to solve this.

 ![326607-keydown.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/5/a55c83607d2b9b9c4e938e15c0ca2929a41aed85.png)

I hope you understand the problem, and can help me

Thank you
