When button pressed callback help needed

You should use pressing()

    if(Controller1.ButtonUp.pressing()){
      flywheel.spin(forward);
    }
    if(Controller1.ButtonDown.pressing()){
      flywheel.stop();
    }

Take a look at this response: Toggle in vexcode pro - #6 by Hudsonville_Robotics

1 Like