I'm working on a "status bar" application. I want to switch my app into "mode B" whenever the Command ⌘ key is pressed (and released: keyDown + keyUp). Globally. Command + <Key> combinations should work as usual. "Mode B" lasts only 3 seconds. Within this period the app catches all keyboard events. Active application focus should not change. I'm a beginner, don't know where to start. Any thoughts about that? Please, help!