Environment.keyboardState

KeyboardState keyboardState

Description

An object that reports the active state of the keyboard at any time.

Provides access to the key state independent of the event-handling framework.