Overview :
I want my keyboard to have a key that functions similarly to capslock but will also type the alternate symbols, particularly I want _ instead of -. I was informed that Cherry corp makes a mechanically latching switch, but I decided that between the $15 price tag and the loss of the momentaryness of the shift key I would be better off designing my own circuit to put in parallel with the shift key.
What I eventually came up with was a Hold on-push off nand gate latch that would sit in parallel with the switch. This way the shift key functions normally unless it is held for some arbitrary amount of time at which point the circuit will latch, keeping shift enabled until the key is pressed again.
here is the schematic. the caps are 22uf ceramics and the nand gates are a quad 2-input nand (SN74AHC00n)

The problem:
it works fine when it has a single switch attached (no keyboard).
It LATCHES correctly when attached to the keyboard; however, it appears that the shift key then activates ALL the keys attached to the shift keys row and/or column in the key matrix.


Can anyone give me some pointers?
I dont have a lot of components to throw at this problem, but id like to stick to what I have on hand. I'd also like to keep it small so I can fit the circuit inside the keyboard.
I have plenty of 74XX 2 input logic gate chips.
I have a couple of PHP45N03LTA mosfets that may (or may not) be functional.
I can probably salvage some d1616a transistors.
I have several of what I assume are optocouplers/isolators.
basically what ever i can salvage out of an old ATX power supply.