Adds key press to pause/unpause the generations.