Waiting for button to stop being pressed