Make a servo run using a tact switch

Hi guys! im planning to run a servo motor from 0 degree to 180 degrees by pressing the tact switch once and then goes back to 0 degree when it reaches full 180 degrees. can you help me please.

What part are you having trouble with? There are example sketches in the IDE to sweep servos, and there are examples to read switches.