Use mouse to place a pipe, right and left arrow keys to rotate pipes, and number keys to change tool.
This has some similarity to my game titled "Build A Fortress", except you are using pipes.