# Change the text on a button when a key is pressed

**URL:** <https://forums.unrealengine.com/t/change-the-text-on-a-button-when-a-key-is-pressed/1135863>\
**Category:** UI\
**Tags:** unreal-engine, Widget, CPP, question\
**Created:** [April 21, 2023, 3:14pm UTC](https://forums.unrealengine.com/t/change-the-text-on-a-button-when-a-key-is-pressed/1135863 "2023-04-21T15:14:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![K3nda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@K3nda](https://forums.unrealengine.com/u/K3nda)\
**Post date:** [April 21, 2023, 3:14pm UTC](https://forums.unrealengine.com/t/change-the-text-on-a-button-when-a-key-is-pressed/1135863/1 "2023-04-21T15:14:54Z")

</div>

Hello, currently in training, I am doing the hotkey change on button click.

For example: I click on the button, and wait for user input to change the text on the button, to the key that the user entered.

Problem, I can’t seem to find a great solution on Unreal 5, but a lot of the 4, except some methods seem missing.

So I need a little help please 🙂
