public void KeyDownHandler(object sender, KeyEventArgs e) { // On Esc cancel the current action and switch to None if (e.KeyCode == Keys.Escape) { SwitchActionType(ActionType.Action2d_Nothing, this); } else { _currentAction.KeyDownHandler(sender, e); } }