Wiring keypad in cube instead of matrix

Actually, without diodes, you lose half of the switch positions. :astonished:

Charlieplexing is based on the use of diodes (and thresholds). It does not work for incandescent bulbs.