The easiest way to design keyboard layout I found so far is EasyAVR. Compile firmware to hex format with this tool.

To program the keyboard:

sudo dfu-programmer ATMEGA32U4 erase
sudo dfu-programmer ATMEGA32U4 flash MyPlanck4.hex

Replace MyPlanck4.hex with your file.