Wiring keypad in cube instead of matrix

Instead of demultiplexers, decoders can also be used I guess.