Try forking the repl. The repl might just be broken.
I can’t help you but I have a feeling it has something to do with.
y += vel
It just doesn’t look right.
that isn't the problem, when this is line is outside the if statement, it works just fine, but it won't stop moving. I need it so that when I press the "w" key, the y value will have vel subtracted from it (and yeah i know, it is supposed to be y -= vel to make it go up).