prevent input type text from submitting after pressing enter code example
Example: how to stop form from submitting on enter
<form ... onkeydown="return event.key != 'Enter';">
<form ... onkeydown="return event.key != 'Enter';">