make TEXTINPUT event peeking more bullet-prof

by checking that there are no other pending
KEYDOWN events before the TEXTINPUT event