Update key2indices.m