The KeyboardState type exposes the following members.
Gets whether or not the caps lock is enabled.
Returns all the pressed characters. For example if the KeyCodes property contains SHIFT and A, this property will return 'A' or if the KeyCodes property contains CTRL, ALT and Q, this property will return '@' on a german keyboard.
Returns all the pressed keys.
Returns all the pressed modifier keys in one enumeration.
Used to distinguish two keyboard states if they contain the same same key codes. Useful if a key is pressed for a long time which should generate repeated key strokes.