Added TextInputEvent structure.
Messing around with text editing.
Using switch statement in Painter.frag for selecting modes.
Fixed some documentation in Painter.h