# How to check if 2 keys are pressed at the same time in blueprint?

**URL:** <https://forums.unrealengine.com/t/how-to-check-if-2-keys-are-pressed-at-the-same-time-in-blueprint/421064>\
**Category:** Cinematics & Media\
**Tags:** viewport, unreal-engine, UE4, Blueprint, question\
**Created:** [March 27, 2018, 11:28pm UTC](https://forums.unrealengine.com/t/how-to-check-if-2-keys-are-pressed-at-the-same-time-in-blueprint/421064 "2018-03-27T23:28:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean001](https://forums.unrealengine.com/u/Sean001)\
**Post date:** [March 27, 2018, 11:28pm UTC](https://forums.unrealengine.com/t/how-to-check-if-2-keys-are-pressed-at-the-same-time-in-blueprint/421064/1 "2018-03-27T23:28:53Z")

</div>

Hello, I was wondering how do I check if 2 keys are being used at the same time in a blueprint? This is what I have so far:

 ![235307-ab56fa0e9167378935b0723173f50712.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/d/e4d884e145ca45eab3aaee59386f6700055885fb.png)

I’m trying to make it so when you press left control + mouse wheel down / up it will zoom in/out of your character.

---

<div class="post-metadata">

**Author:** ![Ruffhaus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ruffhaus/32/1194663_2.png) [@Ruffhaus](https://forums.unrealengine.com/u/Ruffhaus)\
**Post date:** [March 27, 2018, 11:53pm UTC](https://forums.unrealengine.com/t/how-to-check-if-2-keys-are-pressed-at-the-same-time-in-blueprint/421064/2 "2018-03-27T23:53:02Z")

</div>

Easier if you create an input in the project settings, as you can add the modifier there.

 ![235326-input.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/f/22f30fe5c26615fa385a3c8b5a315772c7a2efcf.png)

Then you can just call it the same way you’d call a raw input event.

 ![235327-callinput.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/6/e76000121c3fc44f39926e6887dea3eb6f8b117a.png)

And that way if you change the input method the logic in the blueprint will still work.

---

<div class="post-metadata">

**Author:** ![Sean001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean001](https://forums.unrealengine.com/u/Sean001)\
**Post date:** [March 27, 2018, 11:57pm UTC](https://forums.unrealengine.com/t/how-to-check-if-2-keys-are-pressed-at-the-same-time-in-blueprint/421064/3 "2018-03-27T23:57:08Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![Ruffhaus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ruffhaus/32/1194663_2.png) [@Ruffhaus](https://forums.unrealengine.com/u/Ruffhaus)\
**Post date:** [March 28, 2018, 12:24am UTC](https://forums.unrealengine.com/t/how-to-check-if-2-keys-are-pressed-at-the-same-time-in-blueprint/421064/4 "2018-03-28T00:24:50Z")

</div>

No worries, it’s a good idea to mark this as answered so if someone else comes across it they will find the accepted answer.
