TextBox Help

Hi I was making a custom console and i am new at unreal engine for that i dont know how to make it i have a textbox, a enter button and close button.
What i want is when i right to the textbox and click enter I want my game to do something.

So you already created the Widget?
Set the IsVariable checkbox in the Details panel of your Button to true. The Events category will appear and from there, click on the green button to add the event to the Graph tab.

If you want the TextBox to show up in the Components area in Graph view set its IsVariable option to true, too.
Then you can do something like this: