iterating on the Key class