Hold still at the end of a stroke to snap it to a line, ellipse or rectangle. Hold Shift for a straight line.