I'd go for a pedal (footswitch) that can send a configurable momentary MIDI event such as a note on. Which momentary MIDI event is assigned to Play/Pause. Configuring Logic's play button to behave as such could also be necessary.
In this review article
, they mention about different options available on the market. The Control a DAW With Your Feet
section might be of interest to achieve your goal.
LogicPro 10.6.2, MainStage3.5.2
MBPro 17", Core2Duo, 8G, OSX 10.12.6
MacPro, Xeon 6Cores, 64GB, OSX 10.15.7
ULN8, MOTU MIDI TP-AV, C4, MCU Pro, KorgNano, Novation SLMkII
AAS, NI, Celemony, Spectrasonics, Korg, Arturia, etc...
PC, iPad3(V-Control & LogicRemote), AtariST(Notator SL), Several vintage gear