code: def create_key_pair(self, key_name):
          
          params = {'KeyName':key_name}
          return self.get_object('CreateKeyPair', params, KeyPair, verb='POST')
docs: Create a new key pair for your account.
          This will create the key pair within the region you
          are currently connected to.
  
          :type key_name: string
          :param key_name: The name of the new keypair
  
          :rtype: :class:`boto.ec2.keypair.KeyPair`
          :return: The newly created :class:`boto.ec2.keypair.KeyPair`.
                   The material attribute of the new KeyPair object
                   will contain the the unencrypted PEM encoded RSA private key.