Hi, sorry for my bad english, but a can't find decision. I create standart platformer on phaser, javascript. I use arcade physic. After I pressed a jump button, my character jumps from the ground several times, while I release the button. I want its to jump once. I use this check to pressing:
if (keyJump.isDown && player.body.wasTouching.down)