Arduin button with servo

I have been scanning message bards and you tubes- but can’t seem to find an answer to my specific question.

How do I stop a void loop servo action and restart with a button
servo- pin 9
button- pin 2

Any help would be greatly appreciated
Tom

see this other post (are you guys doing the same homework??)

I posted some tentative code to help think about this