Ways to cancel a command Cancel the running command in these ways: Press Escape. Press the right mouse button or the Cancel pedal (if using handwheels). Run CANCEL_COMMANDS.