Servo motor with one button

@nick_d121 Why do users choose to ignore the advice on posting code ?

The easier you make it to read and copy your code the more likely it is that you will get help

Please follow the advice given in the link below when posting code , use code tags and post the code here

As to your problem, you need to detect when the button becomes pressed rather than when it is pressed. I imagine the the ezButton has such a function or look at the StateChangeDetection example in the IDE to see how to do it without a library

Each time you detect that the button has become pressed move the servo to the opposite angle