connect start and stop text input functions (sdl). including handling textinput events