Actuator Control via a Serial Monitor - Issue

where do you shut the motor off?