If you are using Perl/Tk, there are built in functions that will allow you to specify keyboard events. If you wish to look further into Tk, get the Perl/Tk book from O'Reilly. Yes, I know, most of the time, GUI is bad. In this case however, A few text boxes in a GUI with keyboard events might be what you were looking for.