Use arrow keys or WASD to move. 0 key to edit. These only work if the edit mode is on. 1-4 keys to add different tiles. l tile to change level. r to reset level. q to put auto arranging tiles mode on.
Thanks to griffptatch for all the code.