I am (as a hobby) looking into making a keypad with independently scanned keys. I am going with a row-column matrix approach (due to limited GPIO). And would like to utilize MCUs low power modes. Now to achieve both criteria I need to keep rows low unless I detect a button press, which I can do with a wakeup pin on MCU.
However, my layman knowledge of circuits only comes up with a head-on solution by using mosfets like below (it is overly simplified, but I hope delivers the point):
Now, this will be awful lot of mosfets for any reasonable number of keys (think a 104-keyboard). While sure this solution would work, I can't help but ask whether there is a better solution to this problem (preferably using only simple electrical components since 1 MCU is already enough to blow my brain).
