On steam click View>settings.
Then click on the "in-game" tab, you should see "Enable steam community in game" with a checkbox beside it, uncheck that one to do that.
It turns off the steam overlay in game (IE shift + tab, so you can see friends, messages, achivements, etc).