Updated standard_keys_to_custom_keys to be recursive.