A few buttons on a ‘Pi can probably be directly connected, one for one, to GPIO pins. A mechanical keyboard is going to require a few more pins and probably some sort of matrix scanner.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results