Some media keys behave oddly.
Some media keys behave oddly.
I own the Corsair K95 Platinum keyboard with media keys, and the Pause/Play function is what I need to adjust. This issue began after a recent reboot, probably due to a Windows update. If a YouTube or Twitch stream is open in one of my Chrome tabs—even inactive—it takes precedence over Spotify. I have no idea how to resolve it.
It seems the system isn't identifying Spotify correctly, so you might want to configure it as your preferred music player.