The video above shows how someone turned her father’s old straight key into a USB keyboard. This imgur gallery shows some construction details. The processor is an Arduino-compatible Teensy embedded in the base.
Currently, the project only supports lower-case characters and character timing is set at a fixed value, but adding upper-case shouldn’t be too difficult. All you’d have to really do is to add a prosign for SHIFT.