Arrows to move. ghosts will spawn randomly. space to slash. You can touch the ghosts but if they stay on screen to long you will lose one health.
I credit the code for the walls to: https://www.youtube.com/watch?v=EVYfWZFmPk8