The code in the Pendant with an attitude that was the start of this thread emulates the keyboard commands. The attitude sensing was just a gimmick to play with. It would be much easier to add buttons to press
instead of the accelerometer sensing. If you wanted to try that the code is their already. I looked at the USB, if it was a HID device I might have been able to stumble through it and make something work but it has it's own driver and USB is way over my head.
The code and stl files are in Thingiverse/Kisssys
I always do a 3d print of what I'm building to test the idea out, I'll machine the top and bottom out of aluminum one of these days for the Shuttlexpress modified pendant.