handleKeyboardEvent

Handles a keyboard event

Return

True if the canvas used the key action, in which case the UI should stop forwarding the key to other UI elements

Parameters

key

Type of key that was interacted with.

action

Type of action that was performed on key.