Added generating spinner when generating keys