Press up and down buttons (on keyboard or screen for mobile) to move up and down respectively. Avoid ghosts and eat those small circular things (Pellets).