What is the most effective method for implementing a global keyboard shortcut manager for a web application using JavaScript? Which events should be targeted and where should the event handlers be connected?
I am looking to replicate the functionality seen in Gmail, which supports single key shortcuts as well as those with modifier keys such as Ctrl + B. The solution should be compatible with IE 6 and modern browsers.
I have access to the Prototype framework but not jQuery, so please refrain from providing jQuery-specific responses!