Java-check if control key is being pressed

Viewed 24030

I have a Java function in which I want to test if the control key is being held down. How can I do that?

Edit: I am using swing for gui.

4 Answers
Related