Use the angle bracket keys — < and > — to rotate whatever you're placing.
Each tap turns the piece a step further, so you can line beds, monitors and cabinets up against walls without having to pick them up and try again. If nothing seems to happen, check that the object is actually selected for placement first, since the rotate keys only apply while you're holding something.