I have a MacBook Air and yesterday the pause and skip buttons stopped working for Spotify on the keyboard. I've tried contacting Spotify via email as well as searching on the cummunity support section of the Spotify website.
Try installing your mac's software updates,
the same thing happened to me too. After installing the update, the buttons worked again