GoForSmoke:
So you wrote a lot of code in a language you don't know to run on hardware you don't know and expect it's not going to be hard to fix?You should get to know both before laying out your design and then work that up a part at a time, debugging all the way.
If you want to make a decent text editor you will need to write for better terminals than Serial Monitor though it's enough for EDLIN or VI.
The purpose of the program is to learn the language and hardware. So far I think it's working.