Google 了一下Modifier Key:
- Each key that appears on the keyboard without requiring modifiers are sent as a keydown followed by a key up.
- If a key requires a modifier key (e.g. "!" on a standard US keyboard), the sequence is: modifier down, keydown, key up, modifier up, where key is the ideal unmodified key value (using the previous example, a "1").
- Modifier keys (Ctrl, Shift, Alt, and Command/Meta) are assumed to be "sticky"; each modifier should be held down (e.g. only a keydown event) until either the modifier is encountered again in the sequence, or the NULL (U+E000) key is encountered.
- Each key sequence is terminated with an implicit NULL key. Subsequently, all depressed modifier keys must be released (with corresponding keyup events) at the end of the sequence.