This implementation of switch I found on transistor tester project. It is based on p-channel Mosfet. Consider secondary sources as out from microcontroller. First step. You do short right key. Microcontroller starts and hold bipolar transistor open. It is modelled through left switch.