You hit the play/pause key on your keyboard. Nothing happens in Spotify. Or worse, Apple Music launches instead. It is one of those small Mac annoyances that feels like it should not be possible, yet it catches people out regularly.
The good news is that the cause is almost always the same thing, and the fix takes seconds once you know where to look.
Why Do Mac Media Keys Lose Track of Spotify?
macOS routes media key presses to whichever app most recently had media 'focus'. That focus shifts whenever another app starts playing audio, or in some cases simply when another media-capable app becomes active. Three things tend to cause the problem:
1. Apple Music Is Running in the Background
Apple Music registers itself as a media key handler at launch. Even if it is not playing anything, it can intercept the play/pause key and start playing your library instead of handing control to Spotify. This is the most common cause.
2. A Browser Tab Started Playing Audio
A YouTube video, a podcast site, or even an auto-playing advert in a background tab can grab media focus away from Spotify. Once a browser tab plays audio, the browser may claim the media keys on its behalf, and Spotify stops responding.
3. A Third-Party Utility Is Intercepting the Keys
Apps that remap or extend the keyboard, media-key utilities, or certain launcher tools can sit between your keypress and Spotify, absorbing the signal before it arrives.
There is no system setting that lets you pin media keys to a specific app. macOS uses a 'last active media player' heuristic. The app that most recently played or paused audio is the one that responds. That means any audio activity in another app can silently take over.
How to Fix It: a Step-by-Step Checklist
- Quit Apple Music entirely. Do not just close the window. Go to the menu bar, right-click the Apple Music dock icon, and choose Quit. Then press play/pause again in Spotify. This resolves the problem for the majority of people.
- Check your browser tabs for audio. Look for the speaker icon on any open tab. Pause or close any tab that is playing audio. In most browsers you can right-click a tab and choose 'Mute Tab' as a quick measure. Once no browser tab is playing, click play inside Spotify manually once to hand focus back to it.
- Play something in Spotify first. Because macOS uses the last-active heuristic, clicking play inside Spotify directly (not via the keyboard) resets focus to Spotify. After that, your media keys should work again for that session.
- Check for keyboard remapping utilities. If you use an app that customises function keys or rebinds keys, check its settings for any rule that intercepts the media keys. Temporarily quitting the utility is the quickest way to confirm whether it is the cause.
- Restart Spotify. Occasionally Spotify itself loses its place in the media-key queue after waking from sleep or reconnecting to a Bluetooth device. A full quit and relaunch usually restores normal behaviour.
Go to System Settings, open the Keyboard section, and look for an option to stop pressing the play key from launching Apple Music when no audio is playing. On some macOS versions this is listed under 'Keyboard Shortcuts' or within the relevant media settings. Disabling it stops Apple Music from hijacking the key when nothing is active.
What If the Keys Still Do Not Work?
If you have worked through the list above and Spotify still does not respond, a few less common causes are worth ruling out:
- Bluetooth or external keyboard pairing issues. Try the built-in keyboard if you are using an external one, to confirm the keypress is reaching macOS at all.
- Spotify in the background with no active device. If Spotify thinks playback is happening on a different device (a phone, a speaker), the play/pause key may toggle that device rather than your Mac. Check the device selector inside Spotify.
- macOS needs a restart. After an update or a very long uptime, the system media-key routing can behave oddly. A restart clears it.
A Different Way to Get Back to Spotify
The media keys problem points to a broader frustration: on a busy Mac, picking up a track you were listening to earlier is harder than it should be. Echo does not manage the system media keys, but it gives you a reliable keyboard shortcut, ⌘⇧E, that opens a search palette showing everything you have played across Spotify and other apps. You can find any recent track and resume it at the exact point you left off, without needing the media keys to cooperate.
For more on keeping tabs on what is playing without relying on the media key queue, see the guide on showing now-playing in your menu bar and how to get your full Spotify listening history on Mac.
Frequently asked
Why do my Mac media keys open Apple Music instead of controlling Spotify?
Can I make macOS always send media keys to Spotify?
Why do my media keys stop working after switching browser tabs?
Do the media keys work with all Mac keyboards?
Never Lose Track of What You Were Playing
Echo remembers every track across every app, so you can find and resume anything you played with one keyboard shortcut, no media key juggling required.
One-time purchase, yours forever.