# Input Actions in the Game menu using "Set Input Mode UI Only"

**URL:** <https://forums.unrealengine.com/t/input-actions-in-the-game-menu-using-set-input-mode-ui-only/2499964>\
**Category:** Programming & Scripting\
**Tags:** interface, User-Interface, unreal-engine, Blueprint, question\
**Created:** [May 10, 2025, 2:49am UTC](https://forums.unrealengine.com/t/input-actions-in-the-game-menu-using-set-input-mode-ui-only/2499964 "2025-05-10T02:49:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jowoosa1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jowoosa1](https://forums.unrealengine.com/u/Jowoosa1)\
**Post date:** [May 10, 2025, 2:49am UTC](https://forums.unrealengine.com/t/input-actions-in-the-game-menu-using-set-input-mode-ui-only/2499964/1 "2025-05-10T02:49:58Z")

</div>

Im making the game menus (inventory, pause, equipment) and I was working with two “Input Mapping Contex”, one for Gameplay and the other one for the UI navigation.

When i load a menu, i add the UI Mapping Context with a higer priority, and then i use the node “Set Input Mode UI Only” attached to the menu i just load. The problem when i do this, is that the Maping Context start being ignored. I dont know if its necesaary use “Mode UI Only” and i really dont understand what it does

I use a “Set Input Mode Game and UI” instead the “UI Only”, and that allowedme to use the Input Mapping designed for the UI, but honestly, i dont know if thats a solution, and if that allow me to controll all the menus with my keyboard and mouse.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/7/0675a1964442308e879aa5add418c0d68f5c2f70.png)

---

<div class="post-metadata">

**Author:** ![doctorpepperdan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@doctorpepperdan](https://forums.unrealengine.com/u/doctorpepperdan)\
**Post date:** [May 10, 2025, 9:59am UTC](https://forums.unrealengine.com/t/input-actions-in-the-game-menu-using-set-input-mode-ui-only/2499964/2 "2025-05-10T09:59:58Z")

</div>

You need to set ovveride input functionality. In the BP for the widget, on the functions tab, there’s a little drop down box that says override. Click here and find “on key down” I believe it is called. In this function, pull of the pin, call get key, run an == check for desired input, and executing desired functionality. On the return node you have to also enter a “handled” node to the input.

---

<div class="post-metadata">

**Author:** ![Lone\_Bowman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lone\_Bowman](https://forums.unrealengine.com/u/Lone_Bowman)\
**Post date:** [June 1, 2025, 1:14pm UTC](https://forums.unrealengine.com/t/input-actions-in-the-game-menu-using-set-input-mode-ui-only/2499964/3 "2025-06-01T13:14:48Z")

</div>

The problem I see with this is that it won’t work with the greater IA system - If I open the menu with both, let’s say Tab and R3 on a controller, then I can’t close it using R3, just the key I defined. Is there any way around that?

---

<div class="post-metadata">

**Author:** ![doctorpepperdan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@doctorpepperdan](https://forums.unrealengine.com/u/doctorpepperdan)\
**Post date:** [June 2, 2025, 1:48am UTC](https://forums.unrealengine.com/t/input-actions-in-the-game-menu-using-set-input-mode-ui-only/2499964/4 "2025-06-02T01:48:52Z")

</div>

It should work, on construct of the widget make sure your setting input mode to UI, this way it won’t call other functionality assigned to those keys. You’d want to run a check if the input key is tab or R3 , then call remove from parent. Then on event destruct return input mode to game

---

<div class="post-metadata">

**Author:** ![FPChrisFP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FPChrisFP](https://forums.unrealengine.com/u/FPChrisFP)\
**Post date:** [February 19, 2026, 4:29pm UTC](https://forums.unrealengine.com/t/input-actions-in-the-game-menu-using-set-input-mode-ui-only/2499964/6 "2026-02-19T16:29:12Z")

</div>

I struggle with this as well. Setting UI Only mode should be a trivial thing IMO. Allow the gamepad, mouse and keyboard to function in menus. Set Input back to Game Mode when exiting. I don’t understand why it’s such a big ask?
