title: Emulating Google Keyboard Shortcuts
body: <p>I'm really curious how Google (and now Facebook in the photo galleries) implemented shortcut keys such as <kbd>J</kbd>/<kbd>K</kbd> or <kbd>&#8592;</kbd>/<kbd>&#8594;</kbd> arrows. I'm afraid I don't have many details because I can't figure out by inspecting the source which piece makes those buttons 'tic', so to speak. What I'm specifically looking for is a way to bind buttons to Javascript functions - from there, it's obviously fairly easy.</p>