Feel free to use this as long as I get credit! WASD and arrow keys both work.
I used a tutorial by @pranavhaha (https://scratch.mit.edu/projects/414343482/), the rest by me.