Retrieves a value indicating the current state of the SHIFT, CTRL, and ALT keys.
public static final int getModifierKeys()
Returns an integer that represents the status of the SHIFT, CTRL, and ALT keys. Possible return values are obtained by applying the bitwise OR operation (|) to the Key.SHIFT, Key.CONTROL, and Key.ALT constants defined in the Key class.