Fix using the shift key in the text widgets.

Commit abee16b16efcdfa27513aec1bbc8c9630b1bbef4 caused the shift key to
insert a NUL character breaking the text input.

(Note keys like ALT and CTRL behaved the same.)