press space or click to move, character will follow mouse cursor, don't install an arrow key movement system, it does not work well with this.
i made this system in a little game i'm making called waiting in line simulator to prevent the player cutting in line, so i decided to share it, its still pretty buggy so it needs some work, but ill work on it when i feel like it.