EditBox: proper caret moving