Wiring keypad in cube instead of matrix

Sure, you can Charlieplex a keyboard too. No gates or transistors, just diodes.