def METHOD_NAME(self,input,*args,**kw):
    if 'anywhere' in kw:
        search = Key.list_by_name(input,find_anywhere=True)
    else:
        search = Key.list_by_name(input)
    keys = [elem.key_name for elem in search]
    return dict(matches=keys)