isKeyPressed

open override fun isKeyPressed(key: Key): Boolean

Determines if the key is currently pressed down.

Return

true if the Key is currently pressed; false otherwise.