After reading the button to delay the execution without stopping action before a

Do you have pulldown resistors on pins 10 & 11? If not the buttons may work erratically.