Pyglet backend emits an extra key press event when a 'text' key is pressed
The first keypress event will have text set to empty string. If the
key being pressed represents a character, a second event is emitted
which has the right text, and key set to None.