Rename `index` to `key`.