with

infix fun with(key: KeyCode): KeyboardTriggerAction

Returns a KeyboardTriggerAction initialized with this ActionOnKey and the given KeyCode.

Parameters

key

the KeyCode used to initialize the KeyboardTriggerAction.