private void DisposeHandlers() { if (_keyHandler != null) { _keyHandler.Dispose(); _keyHandler = null; } if (_userInputHandler != null) { _userInputHandler.Dispose(); _userInputHandler = null; } }