There was a bug in the new UI with the generate key button :( The bug affected both the API and Agent key generation. The bug has now been repaired and the button is now functioning as expected.