Hold space when the ghost appear to win.
This took me 5 seconds to make, a little thing I made when I was bored so there you have it...