keycode
function (e) { if (e.which === 13 || e.keyCode === 13) { //code to execute here return false; } return true; };