get keys from nested hash, intermediate