Trigger a button click on keyboard "enter" with JavaScript.
Read on how to do it in this link: https://www.w3schools.com/howto/howto_js_trigger_button_enter.asp
Trigger a Button Click on Enter
Press the "Enter" key inside the input field to trigger the button:
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_trigger_button_enter