As of right now, my character moves whilst I'm holding my key down.
e.g.
if keyboard.left:
actor.x -= 5
However, I would like my actor to move in a sort of block-ish fashion e.g. I press my key once and it moves to the left by 5 pixels, regardless of whether I hold it down or not.
How would I do this?