Use mouse to pick up and drop bricks. A and D (or mouse wheel, or left and right) rotate the brick. Hold down shift for smaller steps. W and S (or up and down) scroll the screen when yellow scroll arrows are visible.
Stack the bricks as high as possible, but make sure your structure is solid, you never know what's going to come at it!