protected override void KeyDown(ElementEvent e) { switch (Status) { case ShooterStatus.Win: foreach (int handle in pendingTimers) { Window.ClearTimeout(handle); } if (_practice) { CurrentGame.ShowTitleScreen(); } else { CurrentGame.NextLevel(); } break; case ShooterStatus.Fail: foreach (int handle in pendingTimers) { Window.ClearTimeout(handle); } if (_practice) { CurrentGame.ShowTitleScreen(); } else { CurrentGame.GameOver(); } break; } }