[Solved?] Question concerning catching keypresses for out-of-focus windows.
So, I'm writing a simple program whose purpose is to track respawn timers on monsters in a game, specifically League of Legends. Yeah, I know, it sounds like it might not belong in the "Advanced Java" section, but what makes this particularly interesting is that I'm hoping to catch user-bindable keys (say, keys 7 through 0 on the keyboard, or perhaps f9 through f12 or similar) while the program does not have focus. The idea is that my friends and I (and perhaps more people in the future if I think the program works well enough) would be able to just hit a key to trigger the countdown timers for the monsters in the game while the game itself still has focus. To my knowledge, this cannot be achieved through the traditional ActionMap/InputMap methods.
So, are there any ideas on how to accomplish catching key events when a window does not have focus? I've Googled around and mostly found very little helpful information. What little I have found basically states that I need to use Java's JNI (Java Native Interface).
Anyway, thanks in advance for your consideration!