I'd like to create some kind of background process that listens to all keystrokes event and acts consequently (for example does some action if CMD-A is pressed while in Finder.app, or more complex things, like sequences to create shortcuts like in emacs..)
But how can I listen to keypresses systemwide on SnowLeopard?
I thought of Applescript.. but found nothing..
(I'm good at ruby too, and intended to use rb-appscript actually)
thanks!