Is it not picking up the mapping to “p” or are you getting tripped up on the default mapping being a “play” only button instead of “play/pause”? Can you turn on debug logging, press the play button and report back what Kodi is displaying for the handlekey event please. We can make it function as a play/pause button with a keymap once you can confirm how Kodi is picking up the key. As for that keymap are you wanting to end up with the custom long-press keymap I made or just tweak the play button?