How To Prevent Double Jumping

I assume it’s safe to say you all know what double jumping is- the issue with my game is, however, you can jump indefinitely. Is there some way I can make it so that after you click W (yes, I use WASD), you have to wait until touching the ground again before jumping again?

Hi! You can make the switch turn off itself, by connecting the “out” to “off”.
Also, make sure the switch is turned on again when you touch the ground (use collision).