XL keypad (not usual 3x4 or 4x4)

40 IO pins - use a mega and the keypad.h library.
Don't know how responsive it will be with that many, I've only used it for 4x4.