Update to key pair creation

Update to key pair creation.