k_down down arrow k_pagedown pgdn k_escape esc k_f k_backspace backspace k_f k_tab tab k_f k_return return or enter k_f k_space space bar k_f k_delete del k_f k_lshift left shift k_f k_rshift right shift k_f k_lctrl left ctrl k_f k_rctrl right ctrl k_f k_lalt left alt k_f k_ralt right alt k_f if event type =keyupif event key =ord(' ')reversecheat false score if event key =ord(' ')slowcheat false score the keyup event is created whenever the player stops pressing down on keyboard key and releases it event objects with type of keyup also have key attribute just like keydown events line checks if the player has released the "zkeywhich will deactivate the reverse cheat in that caseline sets reversecheat to false and line resets the score to the score reset is to discourage the player for using the cheats lines to do the same thing for the "xkey and the slow cheat when the "xkey is releasedslowcheat is set to false and the player' score is reset to