isPressed

val InputConstants.Key.isPressed: Boolean

Checks whether this key is currently pressed.

This extension property uses the current window handle to determine if the key represented by this InputConstants.Key is being pressed.

Return

true if the key is pressed; otherwise, false.