OK I have an text box and a botton on a form click the button and it does what it needs to do however i would like to allow it to also do this

User inputs some text and then presses enter and it calls a function

How the hell do u code for the enter button