Following my code:
<form action="test.php">
<input type="text" onkeyup="if(event.keyCode==13) console.log('something');"/>
<input type="submit"/>
</form>
How to disable submit of form with ENTER key and run correctly the onkeyup with pure javascript?