arrow keys do move "dorian" if the ghost hits you 3 times, you lose. if you get the keys, and escape with at least 1 life, you win. the ghost can go through walls.
thanks, cuz i made this at Codeninjas.