Software debouncing in a servo motor using myoware muscle sensor

UKHeliBob:
  analogWrite(A3, HIGH); //enable pullups to make pin highYou cannot do an analogWrite() to a non PWM pin and in any case analogWrite(1) does not really make sense. What are you trying to do here ?

    digitalWrite(press, HIGH);This initially sets pin 0 HIGH. Why do you do that ?
Later it may set pin 1 HIGH depending on the value of the press variable. Why do that ?

  delay(500);  //delay for debounce

Still way too long for debounce

Try printing the value of key variables before the if tests in your program but get rid of the digitalWrite()s to press first or they will interfere with the Serial interface.

It was solved already thanks to mr corss roads

here is the code

#include <Servo.h>
byte button = A3; //button pin, connect to ground to move servo
byte press = 0;
byte pressState = 0;
Servo servo;
byte toggle = 0;

void setup()
{
pinMode(button, INPUT_HIGH); //arduino monitor pin state

servo.attach(9); //pin for servo control signal
// analogWrite(A3, HIGH); //enable pullups to make pin high
}

void loop()
{
if (digitalRead(button)==LOW)
{
digitalWrite(press, HIGH);
pressState = HIGH;
}

else {
digitalWrite (press, LOW);
pressState=LOW;
}
if (pressState == LOW)
{
if(toggle==1)
{
servo.write(160);
toggle = 1 - toggle;
}

else
{
servo.write(60);
toggle = 1 - toggle;
}
}

delay(500); //delay for debounce
}