[HELP]Switch Case syntax and edge detection with two push buttons for a van

PaulS:
Why are you counting switch presses?

Actually he is trying to but failing

      backButtonCounter + 1;
      slideButtonCounter + 1;