I got the idea from floridarolf, but have made a much smaller one with my own components. I think I have ironed out all glitches and bugs, but tell me if you have any issues.
Code 7531, didn't reveal the tag. Noticed keys 24689 didn't modify the "goal" switches.
Key 1 didn't undo any "goal" switches so I assumed it was last. Key 7 only seemed to work if it was first. Key 5 cleared anything key 3 did. Key 3 cleared anything key 1 did.