Use Arrow keys or W A S D keys to move. Try to avoid spikes, lava, water of drowning, and evil Ninjas to get the Mysterious Treasure.
Credit to @SkyStarCoder and @OriginX for some of the code.