Use wasdeq to move around. See the comments inside for help.
Thanks to WO997 for the original. Thanks to MrMcEvoy for the bubble sort algorithm. I added a block for creating a line which is added to a list. The list is drawn every frame. I plan to add proper sorting to the list, so objects that are farther away are drawn first, and objects that are closer are drawn over them.