catch keyboard input and hand it over to pdfapp for processing