start code review and correct issues with text entry in SDL2 driver