fixed "d$", proper keydown and keypress handling
minor
handling non-unicode ascii chars
minor: handling arrows in insert mode