This does not catch up with him, he does what he should, that is, displays letters in the console when a key is pressed. The letter will appear in the input field only after the key has been issued, so you will see it the next time you press the key.
What you need is this . keyup () event:
$('#input').on("keyup", function(){
Demo
source
share