Console done.
keyboard input almost done, some tedious character mapping work remains.