fix left and right

make LEFT and RIGHT go one character in the appropriate.
Unable to test with line wrapping as ENTER does not work yet.
Also fix some other bugs.