Add pause feature

Use spacebar to pause and unpause