Retrieves a value indicating which, if any, of the CTRL, SHIFT, and ALT keys were pressed when the event occurred.
public int getModifiers()
Returns an integer that indicates which modifier keys were pressed.
To determine whether a specific modifier key was pressed when a key event occurred, use the getAlt, getControl, or getShift method.