This is to show how x and y positions work, and to show when which quadrant they are in. Press space to change the control type. Mouse makes the star follow the mouse. Arrow keys make you use the arrow keys to move the star. WASD makes you use the WASD keys to move the star. Feel free to adjust the sliders to experiment.
Credit to my math teacher, otherwise I wouldn't know any of this :D And yes, I am a math nerd