Executes commands based on key bindings within the current scope.
Creates a new CommandExecutor instance.
The command execution context
The initial scope for command execution
Gets the command execution context.
The command context
Executes a command based on the provided key if it's valid for the current scope.
The key representing the command to execute
Sets the current scope for command execution.
The new scope
Gets the current scope for command execution.
The current scope
Executes commands based on key bindings within the current scope.