Just move the mouse or tap on the screen and click the eraser to erase the drawings and to go back to pen mode