Is there anything useful in this page from the Java Tutorials? It mentions caps-lock, so you might get the same thing to work for CTRL.
posted 11 years ago
I just reread my inital post, and, it stands to reason that I didn't get much answer. Let me explain myself a bit better:
KeyListeners are wonderful and easy to use. The problem is that they rely on focus, which apparently is very hard for frames. I can't add the listener directly to my panel, because I need it to respond any time the whole JFrame is focused. You can't add listeners to JFrames, because there are too many different panes that the odds of the right one being focused is low. Thus, I've found many recommendations to use input/action maps in a component. The problem seems to be that the input maps only recognize control as a mask for other keystrokes. I've done a lot of googling on this, and I'm amazed that I'm seemingly the first to run into this problem (and whine about it on the internet).
I've heard it takes forever to grow a woman from the ground
I found this interesting, but the answer wasn't difficult to find. To aid your debugging ability for future problems, I've left in the code I wrote to lead me to the answer, which is to use KeyStroke.getKeyStroke("ctrl CONTROL").
There are no new questions, but there may be new answers.