Press space while pointing at where you want to go with your mouse pointer.
The ghost will be defeated after 35 seconds of dodging (l (37 seconds for hard mode). Remix if you want to.