Strip down an old usb keyboard, theres plenty of vids on utube on how to do this, then use the keyboard plugin in mach4 to configure. on the stripped down one include the shift lock key to act as an on and off key.
Another way is to use an arduino as an interface between the keys you have and the computer, the arduino has a keyboard library.
I feel a quick video coming on......
DazTheGas