code: def get_key(key_name, region=None, key=None, keyid=None, profile=None):
      '''
      Check to see if a key exists. Returns fingerprint and name if
      it does and False if it doesn't
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_ec2.get_key mykey
      '''
      conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  
      try:
          key = conn.get_key_pair(key_name)
          log.debug("the key to return is : %s", key)
          if key is None:
              return False
          return key.name, key.fingerprint
      except boto.exception.BotoServerError as e:
          log.debug(e)
          return Falsf get_key(key_name, region=None, key=None, keyid=None, profile=None):
      '''
      Check to see if a key exists. Returns fingerprint and name if
      it does and False if it doesn't
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_ec2.get_key mykey
      '''
      conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  
      try:
          key = conn.get_key_pair(key_name)
          log.debug("the key to return is : %s", key)
          if key is None:
              return False
          return key.name, key.fingerprint
      except boto.exception.BotoServerError as e:
          log.debug(e)
          return False
docs: Check to see if a key exists. Returns fingerprint and name if
      it does and False if it doesn't
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_ec2.get_key mykey