Set caret in position