Add an animated spinner when generating a private key.