Attempt to parse unexpected key events as text. Fixes #4232.
Merge pull request #4290 from pchote/text-fix

Attempt to parse unexpected key events as text.