Let's say for simplicity's sake that I want to make a "typewriter" add-on for fun (

I've read some posts on here about "keylogging" and "listening for keys" by setting up "a timer that listens to the keysDown" and then using some kind of window switching to add the keys to an object in the livecode window. I don't even want to do anything as complicated as record the keys--just play a sound. This must be possible through a similar method to http://forums.livecode.com/viewtopic.php?f=9&t=4421 but some of the links on that thread are broken and I don't quite understand. Thanks for any help you can offer!