[Posts in the debugging category need to have the following pieces of information included in order to help other teachers or our moderator team best help you. Feel free to delete everything in brackets before posting your request for debugging help.]
Link to the project or level: Game Lab - Code.org
What I expect to happen: player fly left
What actually happens: nothing
What I’ve tried: changing to key went down
The first thing I noticed was you have else statements and if they are triggered, caused the velocityX to be 0. So, I put a console.log in each else statement and saw that one or the other of the else statements is constantly running causing velocity on the x axis to always be 0.
How can you set the default x velocity to 0 without the else statements (hint - look at the top of your draw loop)?
Hope that helps!