Implemented the functionality of the PlayPause hardware button