getKeyValues now returns a .map on the arr[key].