Midi to keypad cmd

Hi,
don’t know if this could ever be done but playing with the command line i thought it would be nice to have it as a layout on my Ipad OSC app. Or maybe build a custom midi external keypad, thinking on some arduino stuff maybe.