In Phaser I have a key event, which runs a function when a key is pressed, in the update function. However this update function is ran multiple times a second, making the function I have set up be run too.
I need a way to prevent the function from being spammed, so that it can only be run every second or so.
