This is the simple schematic I've used for this PCB. Just 40 buttons in a matrix configurration, the basic of the ATMega328 microcontroller and a few more components such as resistors, capacitors, an LED and the pads for the UART or i2c communication.