How to use emit only once

I want my character to pick up the ball then trow it. and then later he cant do it unless he picks it up again. How do i do that?
Game link- https://flowlab.io/game/view/1456943

might workScreenshot 2020-07-10 at 2.32.25 PM

connect the keyboard up and the switch off

ok thanks.

you’re welcome