stop the capture mode with escape key