# How to trigger event on escaping form text box input

**URL:** <https://forums.unrealengine.com/t/how-to-trigger-event-on-escaping-form-text-box-input/2032690>\
**Category:** Blueprint\
**Tags:** textbox, unreal-engine, question\
**Created:** [September 22, 2024, 2:08pm UTC](https://forums.unrealengine.com/t/how-to-trigger-event-on-escaping-form-text-box-input/2032690 "2024-09-22T14:08:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dasuper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dasuper](https://forums.unrealengine.com/u/Dasuper)\
**Post date:** [September 22, 2024, 2:08pm UTC](https://forums.unrealengine.com/t/how-to-trigger-event-on-escaping-form-text-box-input/2032690/1 "2024-09-22T14:08:31Z")

</div>

Hi, I’m pretty new to UE5 and had a question regarding text boxes.

I am trying to trigger an event when a player hits ESC to exit a text box. I thought that this would qualify as losing" focus" or “keyboard focus”, but it seems like the text box only loses focus after I click elsewhere on the screen.

It makes sense that user input would be disabled while typing, but is there a way to whitelist specific inputs to bypass the user input restriction? And if not, through what method could I detect that a player has exited the text box prompt?
