Press left or right to choose which way the line should go next, from the perspective of the line. For example, when the line is pointing up, left goes left and right goes right. When the line is pointing down, right goes left and left goes right.