The KeyboardState type exposes the following members.


Public propertyCapsLock
Gets whether or not the caps lock is enabled.
Public propertyStatic memberEmpty
Public propertyKeyChars
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.
Public propertyKeyCodes
Returns all the pressed keys.
Public propertyModifiers
Returns all the pressed modifier keys in one enumeration.
Public propertyTime
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.

See Also