button counting

the buttons only work when pressed, so i want to press it once and the LEDs stay on and press again and the LEDs turn off, then it resets

So, on the Arduino, you need to detect when the switch transitions from not pressed to pressed. When that happens, increment a variable.

When the value in the variable is odd, do one thing. When it is even, do another.

POST YOUR CODE!