jQuery Hotkeys

jquery.hotkeys plugin lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination. It takes one line of code to bind/unbind a hot key combination http://code.google.com/p/js-hotkeys/

jQuery.inArray()

 Search for a specified value within an array and return its index (or -1 if not found).

The <span style="color: #333333;">$.inArray()</span> method is similar to JavaScript’s native <span style="color: #333333;">.indexOf()</span> method in that it returns -1 when it doesn’t find a match. If the first element within the array matches <span style="color: #333333;">value</span><span style="color: #333333;">$.inArray()</span> returns 0.