Wiring keypad in cube instead of matrix

Exactly.

Nice, those were actually cheaper than I expected, perhaps it's economically viable anyway. Interesting.