<input type="text" onKeyDown="onKeyDown();">
function onKeyDown() { if(event.keyCode == 13) { //TODO : 실행시킬 코드 } }