The keyboard connectors
The keyboard is just 8 * 8 matrix between the Z80 address and data buses. It is connected on SK6 and SK7. In theory it is possible to replace the membrane by a PCB with mechanical keys (and resistors in serial). The rubber keyboard technology seems to consume a lot of power.
SK6 signals    SK7 signals
1Â Â Â Â Â Â A14Â Â Â Â 1Â Â Â Â Â Â D5
2Â Â Â Â Â Â A15Â Â Â Â 2Â Â Â Â Â Â D4
3Â Â Â Â Â Â A13Â Â Â Â 3Â Â Â Â Â Â D3
4Â Â Â Â Â Â A12Â Â Â Â 4Â Â Â Â Â Â D1
5Â Â Â Â Â Â A11Â Â Â Â 5Â Â Â Â Â Â D7
6Â Â Â Â Â Â A10Â Â Â Â 6Â Â Â Â Â Â D0
7Â Â Â Â Â Â A9Â Â Â Â Â 7Â Â Â Â Â Â D6
8Â Â Â Â Â Â A8Â Â Â Â Â 8Â Â Â Â Â Â D2
There are two issues for the keyboard membrane : a red one, the first, and the green one which is the last and the most common. The first issue (red) seems to be often unreliable with a lot of short circuits which sends a lot of unexpected characters... It is impossible to repair them. The green issues are very good. The keyboard is probably the only part with which you encountered troubles. You can keep the same for all your life if you think to clean the contacts sometimes. After a long time, some carbon particle agglomerate on the membrane and generate short-circuits. The only thing to do is to clean the contact surfaces with some alcohol. Unscrew the case, deconnect the keyboard ribbons. Pull out the rubber and be very careful of the three slot. Clean all the keys surfaces on the rubber and the membrane with a tissue with a few standard alcohol (90°). Dry it before reassembling. Do it carefully especially on the cursor, tab, diamond, square, enter and shift keys.