Press and hold the end key.

If you want to close the media player (or music player) but leave the music playing in the background, press the end key.