private void MainWindow_OnKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Escape) { ViewModel.IsFullScreenApplied = false; } }