If you had read the forum you took the tsi from, you would have seen that this has already been done by a number of users.
Firstly you need a program to convert keystrokes (HID) into MIDI control codes / notes.
Most people use bomes or LoopBe.
http://www.djtechtools.com/forum/showthread.php?t=22624