The properties of the key event object, altKey, ctrlKey, shiftKey, and metaKey, are set to true if the associated modifier key is depressed when the event takes place.
ShiftKey, ControlKey, and AltKey each have keyCode values of 16, 17, and 18, respectively.