Any media I have playing or active is randomly pausing, starting or (if music/playlist) skipping to the next track/video. This is not an issue to do with a single media client as I get it with everything (Spotify, YouTube, iPlayer etc). If no media is active or playing, then my Macbook opens Apple Music and plays whatever random audio files I have!
I followed the steps here - https://discussions.apple.com/thread/251230091 which includes resetting SMC and NVRAM. But this is no good.
My keyboard does get hot occasionally, which I suspect might be interfering with the function keys and causing a problem there. Edit: maybe not, as after checking keyboard viewer, changing the function keys and using an external keyboard as per @Allen's suggestions (see comments), this problem persists!
I'm running macOS 11.5.1 (20G80) (macOS Big Sur) on a Intel Core i5 MacBook Air (13-inch, 2017). I probably ought to update but have very little space on here and seems to be fine mostly (apart from this!)
Or how do I disable the function keys completely?
It appears to be an issue with the headphone jack as this triggers (although it still does it randomly) when I move or wiggle my headphone cable. Connecting headphones to bluetooth do not cause this problem at all.