Press right, left or up and down and battle monsters to complete the level.
Thanks to Computer Geek. This is not the real game. If you want to play, go to https://toptower.pythonanywhere.com/ Thanks to @ishaanac