different action based on the number of times a button is pressed

The value used by servo.write() is an integer which moves normal servos to the angle defined by the number or it sets the speed for continuous rotation servos. I cannot begin to imagine what it does with (pos = 13) etc.

As an aside, a continuous rotation servo is not a servo at all as far as I am concerned, but that battle was lost some time ago.