One Servo with Two Switches

if you want the servo to rotate slowly you will need to either use delay() or the more complex using millis().

Do you want the servo to be at either 0 degrees or 180 degrees? or just move when you press the button?