Please consider, as with most cad and edit products, the ESC key should release the cursor and the current associated active function.
As an example, when drawing a line, pressing escape should quit the function as if the Move Tool icon had been clicked.