Just use right and left arrows to move and space to jump. Randomly wander around! If you see the ghost press vacuum and it will go away... but sometimes you lose because he eats you right up if you run into him...
I made the ghost appear by variables changing randomly... I got the idea of using hidden variables to control things from looking inside a tutorial of Fire__, who is my best friend in real life! Also, beware.. finding the ghost has different probabilities!