elif event key in (k_rightk_d)moveright false elif event key in (k_upk_w)moveup false elif event key in (k_downk_s)movedown false if the player lets up on any of the arrow or wasd keysthen the code should set the move variable for that direction to false this will stop the squirrel from moving in that direction any more elif event key =k_escapeterminate(if the key that was pressed was the esc keythen terminate the program moving the playerand accounting for bounce if not gameovermodeactually move the player if moveleftplayerobj[' '-moverate if moverightplayerobj[' '+moverate if moveupplayerobj[' '-moverate if movedownplayerobj[' '+moverate the code inside the if statement on line will move the player' squirrel around only if the game is not over (this is why pressing on the arrow keys after the player' squirrel dies will have no effect depending on which of the move variables is set to truethe playerobj dictionary should have its playerobj[' 'and playerobj[' 'values changed by moverate (this is why larger value in moverate makes the squirrel move faster if (moveleft or moveright or moveup or movedownor playerobj['bounce'! playerobj['bounce'+ if playerobj['bounce'bouncerate playerobj['bounce' reset bounce amount email questions to the authoral@inventwithpython com