Added more advanced text input handling.
Merge https://github.com/DonutDev/SDL_Test
Added more advanced text input.