Optimal way to iterate over few set of keys

Can you define a set of keys? What do they have in common?