code: private void moveVertical(int offset) {
          if (offset < 0) {
              moveUp(Math.abs(offset));
          } else if (offset > 0) {
              moveDown(offset);
          }
      }
docs: Moves the cursor vertically and scroll if needed.
  
  @param offset