Core​Virtual​Key​States Core​Virtual​Key​States Core​Virtual​Key​States Enum


Specifies flags for indicating the possible states of a virtual key.

public enum CoreVirtualKeyStatespublic enum CoreVirtualKeyStatesPublic Enum CoreVirtualKeyStates
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Down Down Down

The key is pressed down for the input event.

Locked Locked Locked

The key is in a toggled or modified state (for example, Caps Lock) for the input event.

All keys support the Locked state (not just the standard Caps Lock and Num Lock keys).

None None None

The key is up or in no specific state.