can someone double check my code?

thebfs:
it is supposed to make sure it wont call the function if both buttons are pressed.

It does not achieve that.