# Remapping keys with Enhanced Inputs

**URL:** <https://forums.unrealengine.com/t/remapping-keys-with-enhanced-inputs/561911>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 20, 2022, 11:25am UTC](https://forums.unrealengine.com/t/remapping-keys-with-enhanced-inputs/561911 "2022-05-20T11:25:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dragoon-scales](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dragoon-scales](https://forums.unrealengine.com/u/Dragoon-scales)\
**Post date:** [May 20, 2022, 11:25am UTC](https://forums.unrealengine.com/t/remapping-keys-with-enhanced-inputs/561911/1 "2022-05-20T11:25:00Z")

</div>

Hi,

I am using the Enhanced Inputs plugin in my project, and I have some troubles when trying to remap keys.

1. How to assign a modifier to a key when using the node ‘Map Key’ (from InputMappingContext) ? The node returns an EnhancedActionKeyMapping structure but I don’t know how to use it to add modifiers.

2. How to get the current key associated with an InputAction ? It’s clear how to Unmap Or Map keys but not how to get the current key(s) used.

3. Finally, how to get the current MappingContext used by the controller ?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [May 20, 2022, 4:30pm UTC](https://forums.unrealengine.com/t/remapping-keys-with-enhanced-inputs/561911/2 "2022-05-20T16:30:34Z")

</div>

Hey, @Dragoon-scales!

Looking into this I found a few YouTube videos that were not created by Epic Games, but should answer your questions above. Although, I am not quite understanding what you mean by “modifiers”, could you explain more what you mean by that?

Here are those videos:  
[Unreal Engine: Enhanced Input](https://www.youtube.com/watch?v=hZLTlq52wCY)  
[UE4 Enhanced Input, Blueprint Keymapping + Keymapped UI Widget](https://www.youtube.com/watch?v=I115tYV0WH8)

I hope the above solutions get you where you want to go!

---

<div class="post-metadata">

**Author:** ![Dragoon-scales](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dragoon-scales](https://forums.unrealengine.com/u/Dragoon-scales)\
**Post date:** [May 23, 2022, 12:34pm UTC](https://forums.unrealengine.com/t/remapping-keys-with-enhanced-inputs/561911/3 "2022-05-23T12:34:15Z")

</div>

Thanks for the links!

Actually, I saw the videos before asking the question. As I didn’t find any solutions in them I asked here.

The modifiers I refer to are the one found under each InputAction in an InputMappingContext. On each InputAction you can add “modifiers” as well as “triggers” : [Enhanced Input | Unreal Engine Documentation](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/Input/EnhancedInput/) (see bottom of the page)
