Use the arrow keys to control the block. Click space to place a block. Click E to open and close inventory. When inventory is open click the block you want to place to select the block.
Thanks to SammyCheez for the block and inventory sprites and tutorial.