This script lets you wire a DIY-DDR pad for use with an Arduino Leonardo. It's defaulted to use digital pins 1, 4, 7, and 8 for input, with a second wire on each pad connected to ground. These send inputs to the arrow keys (UP, DOWN, LEFT, RIGHT).
This project is provided without support! It is for my personal use. Feel free to learn from it or use it how you like.