Barry Carter put together a how to on building your own USB midi keyboard. He used the discontinued (read cheap) AN2131 developer board and a cheap toy keyboard. The keys are rewired with a diode based keyboard matrix that connects easily to the dev board. He rounds out the write up with some source code.