toKey() should use getKind()