# If you dont move or press anything, go to main menu. How to do it?

**URL:** <https://forums.unrealengine.com/t/if-you-dont-move-or-press-anything-go-to-main-menu-how-to-do-it/350739>\
**Category:** Blueprint\
**Tags:** xbox-controller, unreal-engine, Blueprint, question\
**Created:** [March 16, 2016, 6:21pm UTC](https://forums.unrealengine.com/t/if-you-dont-move-or-press-anything-go-to-main-menu-how-to-do-it/350739 "2016-03-16T18:21:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ed5e42b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ed5e42b1](https://forums.unrealengine.com/u/anonymous_user_ed5e42b1)\
**Post date:** [March 16, 2016, 6:21pm UTC](https://forums.unrealengine.com/t/if-you-dont-move-or-press-anything-go-to-main-menu-how-to-do-it/350739/1 "2016-03-16T18:21:42Z")

</div>

Hello!! 😃

I would like to know how to make a blueprint that if i don’t move or press anything, after a few of seconds this take me to the main menu? plz, i need help with this! :c Btw, im using only xbox 360 controller.

ty! 🙂

---

<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:** [March 16, 2016, 6:37pm UTC](https://forums.unrealengine.com/t/if-you-dont-move-or-press-anything-go-to-main-menu-how-to-do-it/350739/2 "2016-03-16T18:37:41Z")

</div>

use input event AnyKey, (uncheck consume input), and SetTimerByFunctionName. as long as you keep pressing keys, the timer will keep getting reset. if you stop pressing keys for 5 seconds, it will call a function, which can open a level that contains your main menu.

Do this in your player controller:

![82483-timeover.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/2/722a298f3689e8d358fc7eaee6b0304e0a3df04e.png)

---

<div class="post-metadata">

**Author:** ![JFK422](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JFK422](https://forums.unrealengine.com/u/JFK422)\
**Post date:** [March 16, 2016, 6:43pm UTC](https://forums.unrealengine.com/t/if-you-dont-move-or-press-anything-go-to-main-menu-how-to-do-it/350739/3 "2016-03-16T18:43:23Z")

</div>

You can use the node “Any key” which is called after any key is pressed. Then use a delay node connected to the release output. This method could cause trouble because the delay is always called when any button is released. Maybe you find a way around that. With the controller it works also, not only with the keyboard.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ed5e42b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ed5e42b1](https://forums.unrealengine.com/u/anonymous_user_ed5e42b1)\
**Post date:** [March 16, 2016, 6:52pm UTC](https://forums.unrealengine.com/t/if-you-dont-move-or-press-anything-go-to-main-menu-how-to-do-it/350739/4 "2016-03-16T18:52:13Z")

</div>

Thank you very much! 😃

---

<div class="post-metadata">

**Author:** ![ShadowBr0kerz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shadowbr0kerz/32/1201558_2.png) [@ShadowBr0kerz](https://forums.unrealengine.com/u/ShadowBr0kerz)\
**Post date:** [October 21, 2026, 4:09pm UTC](https://forums.unrealengine.com/t/if-you-dont-move-or-press-anything-go-to-main-menu-how-to-do-it/350739/5 "2026-10-21T16:09:44Z")

</div>

anykey plus a retriggerable delay is the pattern, every press restarts the timer and only real idleness opens the menu level. put it in the player controller and uncheck consume input so the game still gets the press. gamepad buttons count as anykey too so your xbox controller is covered.

you can also try Kiosk Lockdown Toolkit, an idle detection plugin for Unreal Engine that fires On Idle Started and On Idle Ended on a timeout you set: [Kiosk Lockdown Toolkit — Block Alt+Tab, Win Key & Taskbar for Kiosks | Fab](https://www.fab.com/listings/c91c6583-6eea-412b-ae64-248ddd69f731)
