Click again (or click and drag) to add a node where you want the line segment to end.
To constrain the angle of the line to 15 degree increments, hold down the Shift key as you drag.