ToggleCommand
class ToggleCommand(definition: Action, val selectedProperty: BooleanProperty, lambda: (ActionEvent) -> Unit?) : Command
A ToggleCommand is a Command with an extra selectedProperty. Used with ToggleButton and ToggleMenuItem, where their selectedProperty
is bound bidirectionally to this one.