I'm building a button box with many momentary push buttons to control several raspberry pi zeros via gpio input. I'd like to be able to have each button have two functions by using a selection button. The schematic shows the selection button at the top and two function buttons below it but the final product will have at least 10 function buttons. A high 3.3v input would be connected to each transistor to the left and right of each function button. When the selection button gate is open the function button completes the path to the +5v, activating the NPN transistor on the left and pulling that input to ground. When the selection button gate is closed and the function button is pressed, the shortest path is to ground, so the NPN deactivates and the PNP activates, pulling the other input to ground.
I have built this on a breadboard and it seems to work mostly as expected. Tested it with a few different pieces of hardware, including one with 5v logic and everything seemed fine. I'm here wondering if I'm missing anything important or if there are any issues with this design that I've missed.
Edit: changed schematic image for clarity.. again