Constructs index keys for tuples.