# How do you escape / close unreal game?

**URL:** <https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, packaging-projects\
**Created:** [November 27, 2023, 11:25am UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437 "2023-11-27T11:25:50Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![adhills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@adhills](https://forums.unrealengine.com/u/adhills)\
**Post date:** [November 27, 2023, 11:25am UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/1 "2023-11-27T11:25:51Z")

</div>

Hi, I’m packaging for windows but when I run the .exe there’s seemingly no way to escape the game other than ctrl+alt+delete and to ‘end task’. Why is there no ‘X’ in top right of window to close the game? Any ideas?

Thanks,  
Adam

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 27, 2023, 11:31am UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/2 "2023-11-27T11:31:37Z")

</div>

ESC is the default key in the editor, but there’s no such thing in a packaged game. You have to write it in yourself 🙂

You could make ESC work, or a quit button on the menu etc…

---

<div class="post-metadata">

**Author:** ![adhills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@adhills](https://forums.unrealengine.com/u/adhills)\
**Post date:** [November 28, 2023, 4:56pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/3 "2023-11-28T16:56:25Z")

</div>

Cool I’ll look into this. Do you know how to do it? Guessing with a blueprint? Any links to tutorials very much appreciated. Cheers

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [November 28, 2023, 5:20pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/4 "2023-11-28T17:20:20Z")

</div>

Hi Adhills,

This is how I’d do it:

![quit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/c/58cec130d68e16a2ea3635f4012b353af7f61b63.png)

---

<div class="post-metadata">

**Author:** ![adhills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@adhills](https://forums.unrealengine.com/u/adhills)\
**Post date:** [November 29, 2023, 12:10pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/5 "2023-11-29T12:10:35Z")

</div>

Hi Astrotronic,

Thanks for your help. I tried this but nothing seemed to happen. What might I be doing wrong? I opened the level blueprint, added the code, hit compile and closed. Any ideas? Cheers

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 29, 2023, 12:16pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/6 "2023-11-29T12:16:19Z")

</div>

You need to enable input

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/6/e96e6b0417ac833972827ec78ce1b64db6cb6fbc.png)

Also, do it on the player, then you only have to do it once 😉

---

<div class="post-metadata">

**Author:** ![adhills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@adhills](https://forums.unrealengine.com/u/adhills)\
**Post date:** [November 29, 2023, 12:41pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/7 "2023-11-29T12:41:25Z")

</div>

Thanks. Hmm, I’ve now completed these steps but the escape key still does nothing.

When you say do it on the player do you mean as per shared image - set auto receive input to player 0. Or to actually place the code in a different BP class for the character?

I’m using the games\>blank template btw, if that makes any difference?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 29, 2023, 12:45pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/8 "2023-11-29T12:45:56Z")

</div>

Ok, if you don’t have a player character, then put it in the level BP 🙂

( you still need to enable input )

---

<div class="post-metadata">

**Author:** ![adhills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@adhills](https://forums.unrealengine.com/u/adhills)\
**Post date:** [November 29, 2023, 2:03pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/9 "2023-11-29T14:03:32Z")

</div>

Strange this isn’t working. Maybe there’s something else I’m missing?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 29, 2023, 2:04pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/10 "2023-11-29T14:04:41Z")

</div>

Ok… 🙂

Even if you put the code in the level BP, and enable input, you still need to click once on the viewport when running the game, before the ESC key will work.

Did you try that?

---

<div class="post-metadata">

**Author:** ![adhills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@adhills](https://forums.unrealengine.com/u/adhills)\
**Post date:** [November 30, 2023, 1:48pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/11 "2023-11-30T13:48:39Z")

</div>

Hey, just tried this… still not working unfortunately. hmmm

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 30, 2023, 1:58pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/12 "2023-11-30T13:58:20Z")

</div>

So, to recap:

You put that code in the level BP, and have enabled input on the level BP. You can play the game, but ESC does nothing?

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [November 30, 2023, 4:07pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/13 "2023-11-30T16:07:46Z")

</div>

As an extra check, put a ‘Print String’ node after the ‘ESC’ input execution. If you’re not seeing the print string, you’ll probably need to set ‘Auto Receive Input’ to Player 0 (In the same Blueprint that you’re executing this input) like Clockwork posted above.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [November 30, 2023, 6:06pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/14 "2023-11-30T18:06:20Z")

</div>

When you press a key, the input is routed either to a focused widget, a possessed character, or a controller. There is a certain order here, one of them is receiving the input and “handling” it. The entire input routing is [much larger](https://github.com/YawLighthouse/UMG-Slate-Compendium#input-framework-of-unreal-engine). Part of it: [Docs of UE4.27](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/Input/). Might be different now that Enhanced Input is forced the new default on UE5.

> [@adhills](#):
>
> I’m packaging for windows

Then the “Quit Game” node posted earlier will work. Keep in mind other platforms do not all support this.

---

<div class="post-metadata">

**Author:** ![adhills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@adhills](https://forums.unrealengine.com/u/adhills)\
**Post date:** [October 31, 2025, 4:13pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/15 "2025-10-31T16:13:48Z")

</div>

I never managed this unfortunately. I’m not sure what else to try. I don’t use unreal very often and just getting back into it again now since a client needs a model. It would be nice to get the escape key working to quit the game. My level blueprint is looking like this… What ‘s wrong with it? It’s incorporated suggestions so far but something is missing.

 ![Screenshot 2025-10-31 at 16.10.39](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/6/0961a1ed7a4e9cc083dd5869622cde390d946116.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 1, 2025, 5:05pm UTC](https://forums.unrealengine.com/t/how-do-you-escape-close-unreal-game/1425437/16 "2025-11-01T17:05:12Z")

</div>

Do you have something else in the level that could also be responding to the keystroke?
