You can use the pointing device or enter coordinate values at the Command prompt.
To undo the previous line segment during the LINE command, enter u or click Undo on the toolbar.