Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Control–Shift–Power button* or Control–Shift–Media Eject : Put your displays to sleep.
 
iMac and a Microsoft keyboard.
But I found out that ctrl cmd Q will lock the screen, which works for me too.

On the iMac, you can also just hold the power button on the back of the Mac for half a second or so. A click does nothing, hold it for long and it forces it off, but just give it a slight hold and then release and it goes into sleep mode.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.