Cancelling when other buttons are pressed