ex: represent each keymap with its index in kmaps[]