get_merge_key_grid function

Gets merge key pair list from keys list