When Motor A is off, press switch 1 to turn Motor A on.
When Motor A is on, press switch 1 to turn Motor A off.
Method 1 Using the “wait … 1/10 second(s)” block
https://code.gogoboard.org/#/program/05753032-0293-49ca-8ac6-c97e35e26165
What happens if you reduce the wait time to 1/10 second?
What happens if you remove the “wait … 1/10 second(s)” block?
Method 2 Using the “if switch … just pressed, do … one time” block
https://code.gogoboard.org/#/program/0cd0c2a1-1855-4ce6-a46f-14c29585e1c6
Methods 1 and 2 show different code approaches to debounce a switch.