Beware programmers that carry screwdrivers!
I take a certain small amount of joy in the fact that, having discovered that my problem when testing my new USB HID program was that the test device itself was broken, I unscrewed the device's case, cleaned out some gunge, took the plastic shipping protection tab off the battery (sic!), put it all back together again; and it is working.
I'm not sure whether it was the muck or the lack of power that was the problem. I'd been operating it with only host power for some years, it has transpired; and maybe that was not quite enough to properly drive the keyboard matrix. (The optical mouse part was still working on host power.)
Now I can type digits on my USB calculator in its "PC" mode and see them come up on the computer screen. Hurrah!
I was on the verge of going to e-Bay and paying some bloke in Manchester a tenner for a new one. (-: