Eat the yellow dots and stay away from the ghosts. The control is with the arrow keys or swipe on touch screens.