I like the idea, but can't you achieve most of the functionality just with an add-on $10 USB 10-key, and your choice of scripting? I have used the crazily versatile Controllermate[1] on macOS to do something similar with a gaming keypad that triggered Applescripts and shell scripts.