Select the “Cancel” command of the Edit menu to quit a tool. All the operations performed with that tool will be canceled. The tool is dropped so that you can select another one.
You can also press the Escape key of the keyboard to quit a tool or click on the corresponding icon button in the Assistant Palette.