Hi Tom,
Thank you for posting, I am here to help you. It is not possible to set the P key alone to pause a PowerPoint presentation because it is already assigned to the "Pen" tool during a slide show. The standard keyboard shortcut for toggling pause and play for media is Alt + P.
The keyboard shortcut Alt + P should stop and start the audio.
You can also right-click on the audio icon. This brings up a pop-up menu and also pauses the audio. Clicking anywhere else on the slide resumes play.
For more details you can check this article:
Use keyboard shortcuts to deliver PowerPoint presentations
https://support.microsoft.com/en-us/office/use-keyboard-shortcuts-to-deliver-powerpoint-presentations-1524ffce-bd2a-45f4-9a7f-f18b992b93a0
I hope you find this information helpful. Please let us know if you have any further questions If the answer is helpful, please click "Accept Answer".
Best regards,
Jansher