# UMG Pressing enter inside a textbox to trigger a button

**URL:** <https://forums.unrealengine.com/t/umg-pressing-enter-inside-a-textbox-to-trigger-a-button/223481>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [July 24, 2020, 12:24am UTC](https://forums.unrealengine.com/t/umg-pressing-enter-inside-a-textbox-to-trigger-a-button/223481 "2020-07-24T00:24:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f3190b9b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f3190b9b](https://forums.unrealengine.com/u/anonymous_user_f3190b9b)\
**Post date:** [July 24, 2020, 12:24am UTC](https://forums.unrealengine.com/t/umg-pressing-enter-inside-a-textbox-to-trigger-a-button/223481/1 "2020-07-24T00:24:36Z")

</div>

Hello everyone, i am fairly new to Unreal Engine, and have learned a great deal so far; but i currently find myself in a position where i need a helping hand.

I am trying to press enter when i am inside a textbox, to trigger a button response (as if i clicked it), however this doesn’t work until i click the background picture then pressing enter does work as i wanted to.

anyone know’s how to fix this?

Result:  
Enter something in the texbox, press enter and nothing happens _unless we click the background first_

Expected Result:  
Enter something in the textbox, press enter and button event will be triggered (the code after a button press).

I personally think the issue is “Get Player Controller” is the whole screen, but the buttons etc are something different ?

Thank you for reading,
