What you desire to have happen probably needs better definition.
Here is an example of pressing and holding a button to move a servo.
When the button is released the servo returns to a preset position.
If you want the button to move the servo permanently to a position, then a simple case statement might do it.