Use the arrow keys or key w,a,s,and d to run away from the ghost. when you eat the big dots you can eat the ghost.
credit 2 @random_yellow_thing