moveup false movedown true if the up or down arrow keys have been pressed (or their wasd equivalents)then the move variable (moverightmovedownetc for that direction should be set to true and the move variable for the opposite direction should be set to false elif event key in (k_leftk_a) moveright false moveleft true if playerobj['facing'=rightchange player image playerobj['surface'pygame transform scale(l_squir_img(playerobj['size']playerobj['size']) playerobj['facing'left elif event key in (k_rightk_d) moveleft false moveright true if playerobj['facing'=leftchange player image playerobj['surface'pygame transform scale(r_squir_img(playerobj['size']playerobj['size']) playerobj['facing'right the moveleft and moveright variables should also be set when the left or right arrow keys are pressed alsothe value in playerobj['facing'should be updated to either left or right if the player squirrel is now facing new directionthe playerobj['surface'value should be replaced with correctly scaled image of the squirrel facing the new direction line is run if the left arrow key was pressed and checks if the player squirrel was facing right if that was sothen new scaled surface object of the player squirrel image is stored in playerobj['surface'the code in line ' elif statement handles the opposite case elif winmode and event key =k_rreturn if the player has won the game by growing large enough (in which casewinmode will be set to trueand the key has been pressedthen rungame()should return this will end the current gameand new game will start the next time that rungame(gets called elif event type =keyupstop moving the player' squirrel if event key in (k_leftk_a)moveleft false