Ah hah! Thanks to googling for "perl keyboard hook", I came across this! I'm surprised that I didn't think of the word "hook" for this - would have saved me some trouble. This should do the trick once I get some time to sort through it. Thanks much for the lead :)!