Would it be reasonable to have a setup screen where these messages are trapped, and have the user hit enough keys on that screen for you to identify the keyboard setup, and then proceed on to the screens where you do the actual work without trapping those messages anymore.