//records the keys into console from input element $('input').keypress(function(event){ console.log(event.key) });