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