Use setTextCursor() instead sending events