get keys from key path