in reply to Keyboard capture

Perl would not be a good candidate for this.