# Axis Mappings with Modifier keys

**URL:** <https://forums.unrealengine.com/t/axis-mappings-with-modifier-keys/342416>\
**Category:** Blueprint\
**Tags:** axis-mappings, unreal-engine, UE4, question, Blueprint\
**Created:** [December 25, 2015, 11:48pm UTC](https://forums.unrealengine.com/t/axis-mappings-with-modifier-keys/342416 "2015-12-25T23:48:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay3sh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jay3sh](https://forums.unrealengine.com/u/jay3sh)\
**Post date:** [December 25, 2015, 11:48pm UTC](https://forums.unrealengine.com/t/axis-mappings-with-modifier-keys/342416/1 "2015-12-25T23:48:10Z")

</div>

I see that Modifier keys are available for Action mappings. However I would like to get access to modifier key status for Axis mapping events. In my particular example, I would like to do camera rotate on “Mouse X” axis, but I would like to do camera pan on “Mouse X” axis with ‘Shift’ key pressed.

How could I achieve this?

---

<div class="post-metadata">

**Author:** ![ScottSpadea](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scottspadea/32/1194682_2.png) [@ScottSpadea](https://forums.unrealengine.com/u/ScottSpadea)\
**Post date:** [December 27, 2015, 12:44am UTC](https://forums.unrealengine.com/t/axis-mappings-with-modifier-keys/342416/2 "2015-12-27T00:44:15Z")

</div>

when you press shift, set a boolean called PressedShift to true.

when you release shift, set PressedShift to false.

then, in the mouseX event, you can branch on PressedShift to decide which code to execute.
