Arduino Uno as a HID Keyboard PROBLEM

PaulS:
You do NOT want to increment the counter when the pin IS low. You want to increment when the pin BECOMES low. Look at the state change detection example.

served:
so Why it should not be counted when its low?

PaulS was drawing your attention to the difference between a transition from HIGH to LOW vs. a LOW state.