Keyboard "enter"...how to equate this interaction with a dedicated "enter" button?

Hi Thunkers,

I have an “enter” button for users to tap after inputting text, however, I also recognize that many users habitually use the keyboard “enter” button after typing. Therefore the act of hitting “enter” or “carriage return” on the keyboard should perform all the code behind my dedicated “enter” button. Can anyone tell me how to create the required link between the app’s “enter” button and the “enter” key on the keyboard?

Appreciate your reading.