Use WASD to move, Q and E to switch your selected tile, and click to place a tile.
A sample project for the ESSM Coding Course. This isn't actually a game; it's just a scrolling tile editor. With a cute little floating island. Credit to: @dragon-master for showing me how to do this in the first place.