What about a special hidden control that is always in focus and capture keypresses? Not sure how well that would work, but it's a thought.