I'm trying to write a class that can detect a preset keystroke without the app being in focus. It seems Java can only fire keyboard events if the component with the listener is in focus. Is there a work around or will I need to write something to query the keyboard buffer directly?