Keyboard Action

The KeyboardAction is used for user interaction via the keyboard. It listens to KeyboardEvent.KEY_DOWN and KeyboardEvent.KEY_UP events and notifies the other actions via messages.

This action takes as input a KeyBoardActionData instance whose properties are described as follows:

Property Description
altKey a boolean used to specify if the alt key will be used for user interaction
ctrlKey a boolean used to specify if the ctrl key will used for user interaction
shiftKey a boolean used to specify if the shift key will used for user interaction
keycode a uint used to enable the user to choose his interaction key
type a string with two possible values (KeyBoardAction.DOWN or KeyBoardAction.UP) used to indicate the type of the interaction type. Choosing KeyBoardAction.UP means that the interaction will be launched when a simple click is done on the specified key. However when choosing DOWN the interaction will be launched only when the user holds the key pressed