made the editor a real mode and tweaked controling it from keyboard...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
some cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>