(simple) Debouncing 2 button state machine

it depends on the requirements.

in this case, the PID requirements suggests (??) not using a delay and i showed button code not using delay

but the comments from the OP are confusing