JQuery po naciśnięciu dowolnego klawisza
$("input").keypress(function(){
//this code executes when the keypress event occurs.
});
Inexpensive Ibis
$("input").keypress(function(){
//this code executes when the keypress event occurs.
});
$(this).keypress((e) => {
if (e.key === "a") alert("you pressed a");
else alert("you pressed " + e.key);
});