Ghoul: AWSD keys to move. Attempt to catch the horse in as short a time possible. Horse: Arrow keys to move. Attempt to evade the Ghoul for as long as possible. press e to erase lines
The basic idea and some script borrowed from the book Help Your Kids With Coding.