Code not performing as planned

[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 -
What I expect to happen: gears to change directions when up is pressed
What actually happens: keeps spinning the same way whether the up key is pressed or not
What I’ve tried: I’m not sure what to try, my solution mousedown “button” didn’t work either. Thanks in advance

Hi @sherry.wood,

You came really close to solving this! If you look at your event, keyWentDown, it only tests if the specified key went down NOT if it is staying down. So, it is just a one time check. keyDown will check continuously if the specified key is down. Give that one a try:)


Thanks so much! I missed that!