Press the tilde key, ~, usually found just below Escape. If nothing happens, enable the developer console in the game's keyboard or advanced options first, then try again.