but dsd's code should work but wouldn't keep going after the key is let go of (key up) mine does i know that for sure. i've also encountered a moving problem, if i use velocities to move on a side scroller or top down, if my player's moving let's say right, and he collides with the top or bottom of a square he just stops