Update textinput.py

Reset self._keyboard variable
Merge pull request #1229 from smishlayev/patch-1

Reset self._keyboard after use