Enter on Textbox to invoke function

Does anyone know how i can press enter on a Textbox to invoke a function instead of pressing a button. I’m creating a chat application and its very inconvenient to press a button to send a message. Thanks for your time :thumb2: