Do i need to use a latch function?
while(digitalRead(pin) == pressed) { } // where the variable pressed is the logic level you get when the button is held down.