def check_valid_key_name(name):
    """
    Ensure the key name provided is legal
    :param name: a potential key name
    :return: boolean indicating legality of name
    :rtype: bool
    """
    if type(name) not in [str]:
        return False
    bad_chars = ['*', '.', '&&&&']
    for k in bad_chars:
        if k in name:
            return False
    return True
