Khaios
Duke Fishron
How did you get the middle switch of the keypad to activate the right logic gate without one of the outer switches activating the same one as well as its own?
Good question. I'm going to put this in a spoiler, as it has a few images. Disclaimer: I'm a complete amateur at wiring stuff; self taught by experimentation, or seeing other people's work. Anything I do is likely not the best way to accomplish it.
So this is what the wiring of the keypad looks like. As you can see, the number 5 (middle key) wire (red) runs across number 6 (middle right) on the keypad. This means whenever you press 6 on the keypad, 5 would also activate. So the problem is getting that key to only activate 6, without affecting 5. This is done via logic gates. I moved them away from they keypad, as they don't look all that great, and I wanted them to be hideable, so they're right next to the lock itself.
This is the second part to the keypad, each row marked with their respective number.
If you look at number 5, you'll see that it has a different logic gate type than the other numbers, and that the blue wire from number 6 feeds into it. As you'll recall, when number 6 is pressed, both the red and the blue wire are activated. In order to make the number 5 line not register that, we had to use a XOR logic gate. XOR gates will only activate if one lamp is on. When you press 6, both the red and the blue wires activate, thus the gate will not send a signal. Likewise, when you press 5, only the red wire is activated, in turn activating only one of the two lamps, which allows the gate to send a signal.
Now each switch on the keypad will work independent of the others! There's more misc information regarding the images below, if you're interested.
The row of logic gates across the top (red box) are pulsars. They rapidly turn a signal on then off again. This allows you to press each key on the pad once, and get a signal every time. Without them, you'd have to turn a switch on the signal once to turn it on, and a second time to turn it off again. Not really related to your question, but I thought I'd mention them anyway.
The row of logic gates in the orange boxes are only necessary if you use the announcement boxes to display which number is pressed as text. Without these logic gates, the announcement box would announce twice, each time you pressed a number on the keypad. Again, not really related to your question, but as it's part of my keypad design, figured I'd mention it.
I hope that answered your question. Since I'm self taught at this sort of thing, I have a hard time explaining what I've done, so I tend to over-describe. Sorry D: