protected override void OnDeactivated(EventArgs e)
 {
     base.OnDeactivated(e);
     KeyboardManager.EnableSystemKeys();
     WindowsManager.StartMonitoringActiveAppChangesIfNeeded();
 }
 protected override void OnActivated(EventArgs e)
 {
     base.OnActivated(e);
     KeyboardManager.DisableSystemKeys(this.VisualTreeChildren <IHandleKeyboardHookControl>().ToList());
 }