shortcut.js Hotkey Library Example

A lightweight (4kb minified) keyboard shortcut (hotkey) JavaScript library that allows you to bind keyboard combos and key presses.

If you want to capture the 'f11' key for example, you would create a shortcut and assign it a function to call on press. Usually F11 full screens the display. This will override that event.