private void KeyboardHook_KeyPressed(object sender, KeyPressedEventArgs e) { switch (e.Key) { case Keys.OemOpenBrackets: Globals.CurrentPlayer.ChangeToPreviousTrack(); break; case Keys.OemCloseBrackets: Globals.CurrentPlayer.ChangeToNextTrack(); break; case Keys.OemMinus: Globals.CurrentPlayer.DecreasePlayerVolume(); break; case Keys.Oemplus: Globals.CurrentPlayer.IncreasePlayerVolume(); break; case Keys.M: Globals.CurrentPlayer.MutePlayerAudio(); break; case Keys.Enter: Globals.CurrentPlayer.PlayOrPauseTrack(); break; case Keys.P: Globals.CurrentPlayer.PauseTrack(); break; case Keys.Back: Globals.CurrentPlayer.StopTrack(); break; } }