Generalize the key path