Wow! Thanks! I've been looking for some sample code, and it looks like you've got it!
I did buy one of these (just to avoid the work and get my project done quickly), and must say that it works perfectly (if they only had a USB version!!) :
http://www.multilabs.net/ezKEY.html
Bookmarks