private void Window_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { // ToDo these keys should be configurable // ensure not triggering any of these if hotkey to record is the same var recHotkey = settingService.GetHotkeySettingAsList(SettingService.HotKey_StartStopRecording, string.Empty, string.Empty); if (!recHotkey.Contains(e.Key.ToString())) { if (e.Key == Key.Return) { actionService.ChangeSelectedFileName(); } else if (e.Key == Key.Delete) { actionService.DeleteSelectedFile(); } else if (e.Key == Key.Down) { actionService.OpenOutputFolderInExplorer(); } else if (e.Key == Key.Left) { actionService.SelectPreviousFile(); } else if (e.Key == Key.Right) { actionService.SelectNextFile(); } else if (e.Key == Key.Space) { actionService.TogglePlayPauseSelectedFile(); } else if (e.Key == Key.Escape) { actionService.StopPlayingSelectedFile(); } else if (e.Key == Key.X) { actionService.ExportSelectedFile(); } } }