# Triggering Input Release When Changing Input Mapping Context

**URL:** <https://forums.unrealengine.com/t/triggering-input-release-when-changing-input-mapping-context/1985013>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [August 20, 2024, 7:34pm UTC](https://forums.unrealengine.com/t/triggering-input-release-when-changing-input-mapping-context/1985013 "2024-08-20T19:34:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sefa78](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sefa78](https://forums.unrealengine.com/u/sefa78)\
**Post date:** [August 20, 2024, 7:34pm UTC](https://forums.unrealengine.com/t/triggering-input-release-when-changing-input-mapping-context/1985013/1 "2024-08-20T19:34:39Z")

</div>

Hello everyone, to have my character run i hold down Shift + W, and when i release Shift my character continues to walk. However if i open my inventory and add the Inventory Input mapping context while running it doesn’t automatically release Shift and releasing shift when the inventory is open also doesn’t work, afterwards when i close my inventory and hold down W the character keeps on running. Is there an easy way to handle this?

---

<div class="post-metadata">

**Author:** ![ok\_studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ok\_studios](https://forums.unrealengine.com/u/ok_studios)\
**Post date:** [August 21, 2024, 4:25am UTC](https://forums.unrealengine.com/t/triggering-input-release-when-changing-input-mapping-context/1985013/2 "2024-08-21T04:25:18Z")

</div>

This is all I could think of in reading your question:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/2/23225a09387015c17e31b1051f72e80b55c59dfd.jpeg "What is flush input in Unreal Engine? (And why you should probably enable it)") ](https://www.youtube.com/watch?v=W_F0Hafba6c)

---

<div class="post-metadata">

**Author:** ![sefa78](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sefa78](https://forums.unrealengine.com/u/sefa78)\
**Post date:** [August 21, 2024, 6:17pm UTC](https://forums.unrealengine.com/t/triggering-input-release-when-changing-input-mapping-context/1985013/3 "2024-08-21T18:17:27Z")

</div>

yea my problem is actually very similar to this but when the keys are flushed i need the input system to call the released trigger, because on release i need it to run a piece of code.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/6/286488893a1de33894c06f3935ae9593e15b00e1.png)

---

<div class="post-metadata">

**Author:** ![nuklerist](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nuklerist/32/1194598_2.png) [@nuklerist](https://forums.unrealengine.com/u/nuklerist)\
**Post date:** [March 10, 2026, 2:54pm UTC](https://forums.unrealengine.com/t/triggering-input-release-when-changing-input-mapping-context/1985013/4 "2026-03-10T14:54:31Z")

</div>

Exactly had the same problem

 ![resim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/e/8ae49574ae58f35d31414fb310e242a89deaca0c.png)  
This seems to be working. I dont know why but you need to call at least 2 ticks delay(Even if you check the “Force Immediately”.)

Note: You must check the “Flush Input” option of the Set Input Mode Game and UI node while adding the widget to the screen.
