Seriously, what is this code supposed to do? It just sets an entities z coordinate to 5, waits 2/3 seconds and resets it to 0 if space is pressed. What do you intend it to do? Where ist the rest of the code? Context? Question?


Always learn from history, to be sure you make the same mistakes again...