Code
jQuery(function(){
jQuery('#test').keydown(function(e) {
console.log('keyup called');
var code = e.keyCode || e.which;
if (code == '9') {
console.log('keyup called tab');
alert('worked');
return false;
}
if (code == '13') {
console.log('keyup called enter');
alert('worked');
return false;
}
console.log(code);
});
});