Use the arrow keys to move. Also try to avoid hitting the walls.
Thanks to Coding with Chris. He taught me how to make this.(I also added some things by myself)