... but please don't, because you probably shouldn't. I wish my user agent wouldn't respect keyboard shortcuts except perhaps a whitelist of sites. Too often they replace actual browser interaction shortcuts, e.g. spacebar to pagedown (google is often guilty of this).
I wish the article would go more into keypress events in general and properly organizing code to make attaching shortcuts to it simple, rather than building yet another antipattern into the Jenga tower of bad jQuery code.<p>The real root of the problem here is systematically tying UI actions to events on specific elements in the DOM. Instead of working around it, why not write slightly cleaner code in the first place?<p>It's also not strictly necessary to use a third-party library for this unless you're butting heads with one of the edge cases the library is designed to solve.