add input character callback
add system character callback
use character callback in gui_textedit -- all printable ascii chars work
now quit with 'q' to avoid clash with escape to exit command mode
actually execute commands from command mode as Lua scripts