Use the arrow keys to move the ghost. The red will act like a wall. Try to make the ghost touch the blue because that is the goal.
Credit to @vista13626 for the maze, otherwise done by me.