Enumerates permutations of a given key pattern