Use the wasd keys or the arrow keys to control mario and 0 to switch to the level editor use keys 1 to 9 to switch tiles (other than 6 7 and 8)
Credit to Griffpatch for starter project and art