# "Add/Remove mapping context" Not always firing

**URL:** <https://forums.unrealengine.com/t/add-remove-mapping-context-not-always-firing/2716644>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [April 19, 2026, 8:09pm UTC](https://forums.unrealengine.com/t/add-remove-mapping-context-not-always-firing/2716644 "2026-04-19T20:09:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vollstrekkker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vollstrekkker](https://forums.unrealengine.com/u/vollstrekkker)\
**Post date:** [April 19, 2026, 8:09pm UTC](https://forums.unrealengine.com/t/add-remove-mapping-context-not-always-firing/2716644/1 "2026-04-19T20:09:45Z")

</div>

Hello,

i noticed that most of the time “remove mapping context” and “add mapping context” works fine but sometimes don’t fire but running the same code.

I have game that contains seven mini games that loop when game 7 is finished. One time the event didn’t fire when starting game 7, the next time when starting game 4 and so on.

It seems like the events won’t assign all the time - what can be the problem?

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [April 20, 2026, 2:38am UTC](https://forums.unrealengine.com/t/add-remove-mapping-context-not-always-firing/2716644/2 "2026-04-20T02:38:01Z")

</div>

we’d need to see code by the issue may be how you handle the ‘loop’

---

<div class="post-metadata">

**Author:** ![vollstrekkker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vollstrekkker](https://forums.unrealengine.com/u/vollstrekkker)\
**Post date:** [April 20, 2026, 8:13am UTC](https://forums.unrealengine.com/t/add-remove-mapping-context-not-always-firing/2716644/3 "2026-04-20T08:13:19Z")

</div>

![Unbenannt-1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/9/f59e73e506dc5ab4b7c1ac41762b7e5a5cf4b71b.jpeg)

The code is very simple. In the player controller there are two functions. one for add mapping context and the other for remove mapping context.

The “loop” is actually not a technical loop - game 7 tells game 1 to set the new camera, remove mapping context for game 7 and add mapping context for game 1. nothing special about the game technique.

It seems like sometimes the event will be “ignored”. I had the same problem in another game too.  
The problem is not that it doesn’t work but sometimes it doesn’t work but running the exact same code.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [April 20, 2026, 2:07pm UTC](https://forums.unrealengine.com/t/add-remove-mapping-context-not-always-firing/2716644/4 "2026-04-20T14:07:28Z")

</div>

> [@vollstrekkker](#):
>
> The “loop” is actually not a technical loop - game 7 tells game 1 to set the new camera, remove mapping context for game 7 and add mapping context for game 1. nothing special about the game technique.

yeah i get what you mean but its still more likely the error is here, like you said your function is simple its very unlikely thats the problem

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [April 20, 2026, 8:42pm UTC](https://forums.unrealengine.com/t/add-remove-mapping-context-not-always-firing/2716644/5 "2026-04-20T20:42:34Z")

</div>

The functions are alright. Seek the issue in the rest of your blueprints. Maybe you are adding the same context twice. Maybe you are not calling an event which is not seen in your screenshots.

---

<div class="post-metadata">

**Author:** ![vollstrekkker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vollstrekkker](https://forums.unrealengine.com/u/vollstrekkker)\
**Post date:** [April 21, 2026, 8:57am UTC](https://forums.unrealengine.com/t/add-remove-mapping-context-not-always-firing/2716644/6 "2026-04-21T08:57:25Z")

</div>

I will make some tests and let you know. If the code is right but the problem still happens, i will make a bug report.

---

<div class="post-metadata">

**Author:** ![vollstrekkker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vollstrekkker](https://forums.unrealengine.com/u/vollstrekkker)\
**Post date:** [April 21, 2026, 6:00pm UTC](https://forums.unrealengine.com/t/add-remove-mapping-context-not-always-firing/2716644/7 "2026-04-21T18:00:09Z")

</div>

It turned out i actually had a problem in my code but “any key” works fine at the beginning but suddenly only reacts on the “i” key on the keyboard.
