# How to get a "Press Any Key to Continue" feature in a Loading Screen from a Main Menu

**URL:** <https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416>\
**Category:** UI\
**Tags:** playercontroller, Input, unreal-engine, loading-screen, Widget, Blueprint, question\
**Created:** [August 13, 2021, 9:27pm UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416 "2021-08-13T21:27:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidTveraas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidtveraas/32/1058281_2.png) [@DavidTveraas](https://forums.unrealengine.com/u/DavidTveraas)\
**Post date:** [August 13, 2021, 9:27pm UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416/1 "2021-08-13T21:27:41Z")

</div>

![346253-anykeyto-con.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/9/7d91119e2dc07c92b557e52fa9a6a0139a1914f5.png)

I found this method to have a “Press Any Key to Continue” work for a widget, since apparently direct Inputs are not allowed on Widgets. It seems to work in a level with a spawned player, but it does not seem to function at all when coming off of my Main Menu.

Can anyone suggest a way I can make this “Press Any Key to Continue” work off of my Main Menu? Basically the Widget gives the player some information about what is in the next level. I want them to read it at their own pace, then press any key to start the level. I would like to avoid Event Tick. Thank you for your time and expertise.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 13, 2021, 9:36pm UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416/2 "2021-08-13T21:36:38Z")

</div>

> since apparently direct Inputs are not  
> allowed on Widgets

What do you mean by this. Widgets can override onKeyDown/Up. Same with mouse.

---

<div class="post-metadata">

**Author:** ![DavidTveraas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidtveraas/32/1058281_2.png) [@DavidTveraas](https://forums.unrealengine.com/u/DavidTveraas)\
**Post date:** [August 13, 2021, 9:42pm UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416/3 "2021-08-13T21:42:36Z")

</div>

Hi Everynone, thanks for the quick reply.

I mean that I am unable to call my Action Mapping Inputs on a Widget Event Graph. Would Overrides help me create the “Press Any Key” scenario I’m looking for?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 13, 2021, 9:53pm UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416/4 "2021-08-13T21:53:15Z")

</div>

> Would Overrides help me create the  
> “Press Any Key” scenario I’m looking  
> for?

Yup.

- ensure the widget can accept focus

![346255-screenshot-7.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/1/4e1615f8f258e5e71602d9af0e1b0ad330334094.png)

- give it keyboard focus

![346256-screenshot-8.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/9/3b9dd82cebd6c620adbd2072f8ed19eae4ed228d.png)

- override and, optionally, decide which key is the widget supposed to process / consume

 ![346257-screenshot-9.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/a/e5a1783f69637e437ecd14ca1c9c562029f78886.png)

---

<div class="post-metadata">

**Author:** ![DavidTveraas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidtveraas/32/1058281_2.png) [@DavidTveraas](https://forums.unrealengine.com/u/DavidTveraas)\
**Post date:** [August 13, 2021, 10:12pm UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416/5 "2021-08-13T22:12:03Z")

</div>

I think I followed your steps, but I wanted to make sure, because I’ve not seen any change in results.

 ![346258-focus.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/c/38ccb964ef899b2882f63a16ff95ad099b981a96.png)

I made sure the loading screen widget is Focusable.

 ![346259-set.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/6/ea6d40f4dc47c1fccc7dc7371beb5c013da1d39b.png)

I set the Keyboard Focus where I constructed the Widget, is that the right place?

 ![346261-key.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/8/6a8e292000dd57004b667898c7c8113a3fa007d6.png)

 ![346261-key.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/8/6a8e292000dd57004b667898c7c8113a3fa007d6.png)

I added the On Key Override with the optional Any Key qualifier.

What did I do here? Is it that input are enabled?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 13, 2021, 10:18pm UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416/6 "2021-08-13T22:18:47Z")

</div>

Looks fine at a glance bar 1 thing.

Swap the order of _Add to Viewport_ & _Set Keyboard Focus_ - I’m almost certain that widgets not in the viewport cannot process anything.

Do tell if that worked.

---

<div class="post-metadata">

**Author:** ![DavidTveraas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidtveraas/32/1058281_2.png) [@DavidTveraas](https://forums.unrealengine.com/u/DavidTveraas)\
**Post date:** [August 13, 2021, 10:24pm UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416/7 "2021-08-13T22:24:39Z")

</div>

![346264-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/7/ea7115f32bdd8dd690a664951235696c3ffe9071.png)

I swapped the order. Its still not responding to input. Could it be something wrong with my initial Blueprint?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 14, 2021, 7:49am UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416/8 "2021-08-14T07:49:04Z")

</div>

We shouldn’t be running Tick here, it’s unnecessary. Perhaps we’re in the wrong Input Mode:

 ![346272-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/1/681a4a69850ff695840c6e8377c839bb33d4a707.png)

The above gives all the input processing to the widget; were you to be in _Game Only_ Input Mode instead, the widget would never have the chance to process anything.

Since we’re in the loading screen, you probably do not want to interact with anything else in the world anyway - so UI only is desirable. Once you’re at the last stage of _Press Any Key to Continue_, set the Input Mode to the one that your game needs, and remove the widget.

* * *

The above works even if the widget has nothing in the hierarchy but it cannot be _Hidden_ or _Collapsed_ ofc.

If it does not work, there might be other things going on that we simply do not see here. Do tell how it goes. Depending on how things line up, the focus might be stolen by something else.

Worst case scenario, you could have this in the widget:

 ![346273-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/4/f8448a2cc1518fead6c20c2e7d025462fa393d34.png)

---

<div class="post-metadata">

**Author:** ![DavidTveraas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidtveraas/32/1058281_2.png) [@DavidTveraas](https://forums.unrealengine.com/u/DavidTveraas)\
**Post date:** [August 20, 2021, 8:39pm UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416/9 "2021-08-20T20:39:03Z")

</div>

I moved the widget from the Main Menu level to the beginning of the first level to avoid the no input problem. How would you suggest I get around Event Tick in this instance? I’ll try some things and report back.

---

<div class="post-metadata">

**Author:** ![DavidTveraas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidtveraas/32/1058281_2.png) [@DavidTveraas](https://forums.unrealengine.com/u/DavidTveraas)\
**Post date:** [August 20, 2021, 9:01pm UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416/10 "2021-08-20T21:01:49Z")

</div>

![346839-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/b/40b4b341a2dd791ff263f4bc8f32b1d147259405.png)

 ![346840-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/3/3a358a52a5ee2c4eb3fba833315484b1647ea3a3.png)

These are the two methods I normally circumvent Event Tick, but neither of them seem to work for me here. Any suggestions?

---

<div class="post-metadata">

**Author:** ![leaf.me.alone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@leaf.me.alone](https://forums.unrealengine.com/u/leaf.me.alone)\
**Post date:** [June 29, 2023, 6:29pm UTC](https://forums.unrealengine.com/t/how-to-get-a-press-any-key-to-continue-feature-in-a-loading-screen-from-a-main-menu/487416/11 "2023-06-29T18:29:38Z")

</div>

What I did for this was set focus on the widget in the bp begin play. Then on key down and on lost focus load the next map (or do whatever you want). I tried making the widget hit testable and doing on mouse down but then I hit a stack overflow crash in slate… so i just use on lost focus.

- Create widget and focus in level bp (ignore media player)
- In widget construct focus again just to make sure (not sure if this is necessary).
- Override lost focus event in widget since, if it lost focus, then they must have clicked something.
- Override function On key down in widget  
 ![ue4pressanykey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/4/404d7092b2013ae37b6e45ca273a0757d06feb3c.png)
