How to trigger a button when pressing enter in a text box?

My goal is to be able to press ‘Enter’ on the keyboard while in a text box and have that trigger a button. Which RunActions(…)

A good example of this is in GPT4 like chatbot I made but the use case exists in a lot of situations:
Idle 2023-11-02 T12.23.49.683

Does anyone have any suggested solutions?