Help for macros for csgo

Hello guys, i’m playing on csgo with my mac!
If u know the game there is a bug named bunny hop or bhop. That actions is when u jump and straph u earn velocity.

So I created a macros witch repeat the “n” when I’m pressing “space” ! So I bind “n” for the touch for jump in the game !
When I’m out of the game my macros works and when I press space i can see many “n” on a few seconds but when I go in the game the macros seems to turn off…
someone can maybe help me??