Make an iterative version of key_permutations.