private void Unsubscribe() { if (_layoutRoot != null) { _layoutRoot.KeyDown -= OnKeyDown; _layoutRoot = null; } }