Added keyboard shortcuts to pause and exit