Pressing Enter on the Keyboard

Hello, I have build a login form using two TextInput fileds for username and password. I have already created a button which was straightforward. I want the user to have the option of pressing Enter on the keyboard to log in and not click on the button. How do I do that ? Many thanks