Apparently this question has been asked before and before and before, but either the answers are not solving the problem or use a language not understandable by me.
I have to register a keyboard action using JComponent.WHEN_IN_FOCUSED_WINDOW, so a KeyListener is not an alternative. I have to track pressing down and releasing the key, say a cursor key. I cannot have multiple press/release firings due to some built-in key repeat. I really want to know when the key is physically pressed and depressed. E.g., start a timer when pressed, stop the timer when released (and do not start and stop the timer dozens of times because of the virtual key repeats).
I believe this worked correctly on OS X, but I am on Linux now (OpenJDK 7).
How?