WASD to move the player, E and Q to place the portals. This was made with math (and took too long to figure everything out) If you want to use this, go ahead. Just make sure to credit me.
Inspiration from this project: https://scratch.mit.edu/projects/471254027/