Build a CNC remote control using a USB keyboard controller, then 3d printing an enclosure to hold the cherry keys and wiring them to the controller, then program the functions with Mach 3 editor, and finally testing the remote on a CNC.