Use arrow keys to move. Eating a big food particle frightens the ghost and makes you invincible. Eat all the food particles before the ghosts get you to win.
I actually tried to make this game in the tutorial of just finished coding but it was too complex and i made a mistake and i could not find it so i just remixed!