event.modifiers
The modifiers property of the Event object refers to any keyboard modifier that occurs during an event. Modifiers are in the form of a bitmask object and may consist of the following values: ALT_MASK, CONTROL_MASK, META_MASK, and SHIFT_MASK.