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