Speaker phat with pause button

You “might” find what your looking for here, Use a media keyboard with your pHat Beat, can it be done?
About half way down the page. I tried to clip and past but it wouldn’t let me for some reason?
vlc.communicate(“pause”)