Add text input callback functions, fix up the console (still broken, but usable)