Arrow keys or WASD to move. Press 0 to turn on/off level editor mode and e to use the eraser (in editor mode). In editor mode, press 1, 2, or 3 to change the layer. Hold space to turn on drag tile placing (try it out for yourself). The player is between layers 2 and 3. Press the number for the layer you are on to toggle onion mode. Press p (in editor mode) to add collision pins. Press 1 (in collision pin mode) to add a pin and x to remove it.
Thanks to griffpatch for the art and tutorials.