[Demoplayer] Add Spacebar for toggling Play/Pause

This may close #1268
Pressing the spacebar will now swich between play/pause in demoplayer