attachTo
Adds an onKeyPressed
event handler to node, which checks the KeyEvent against each action's Action.keyCombination and Action.additionalKeyCombinations.
If there is a matching Command, and Command.disableProperty.value != true :
If it is a ToggleCommand, then ToggleCommand.selectedProperty is toggled.
Command.lambda is invoked.
If there are multiple matches, only the first matching Command is considered.