code: private void moveHorizontally(int offset) {
          if (offset < 0) {
              moveLeft(Math.abs(offset));
          } else if (offset > 0) {
              moveRight(offset);
          }
      }
docs: Moves the cursor horizontally.
  
  @param offset