w3schools jquery keydown code example Example: keydown jquery $(document).keydown(function(event) { // Your code });