retrieve keys from an object at path