wrote functional text editor

better then the last one
logs every keypress (support for undo function)