fix move caret by arrows in end line; fix tab; Maxim