Just came across this in python mailing list (link)
(then click the ‘open browser’ button)
Last night I released a new comprehenced version of jshotkeys. This plugin lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination.
For example, to bind
Ctrl+C to a function
fn simply type:
$(document).bind('keydown', 'Ctrl+c', fn);
See the live demo.