I need to check if the Shift key is pressed when moving the mouse. It doesn’t matter when is was pressed, just that is actually pressed at the moment I check.
I poked around a bit and can only find the info I already knew about keyListeners. Then I came across key Bindings, which I really don’t think is what I want either.
The reason behind my question is I am drawing a line. If the user has the shift key down while moving the mouse, I want the line to be constrained either horizontally or vertically. I can work that code out, but I need the magic -
isShiftPressed() method. 
Anyone have my magic method?
Regards,
Dr. A>


