To open the console, tap the backquote (`) or tilde (~) key (they're the same key). The game will pause, the UI will vanish, and you'll see a cursor appear in the bottom left hand corner of the screen. That's where you input your console commands.