Moon jump tends to be one of three, maybe four, things.
In the most basic form if the game has a double jump (or triple, quad...) then somewhere in there will be a "has done enough jumps, no more allowed" flag. Choice timing, pausing, savestates, jumping again... you can find this flag easily...