SyntaxFix
Write A Post
Hire A Developer
Questions
In modern, undeprecated (without keyCode or onkeydown) Javascript:
keyCode
onkeydown
<input onkeypress="if(event.key == 'Enter') {console.log('Test')}">