code: def move_right(self, keep_anchor=False, nb_chars=1):
          
          text_cursor = self._editor.textCursor()
          text_cursor.movePosition(
              text_cursor.Right, text_cursor.KeepAnchor if keep_anchor else
              text_cursor.MoveAnchor, nb_chars)
          self._editor.setTextCursor(text_cursor)
docs: Moves the cursor on the right.
  
          :param keep_anchor: True to keep anchor (to select text) or False to
              move the anchor (no selection)
          :param nb_chars: Number of characters to move.