Sometimes, on alternate keyboard layouts, pressing a keyboard simply doesn't work. Your safest bet is using a launch option in Steam.
In your Steam library, right click on Portal 2, select Properties, and click on Set launch options. You should type -console in there, and next time you start up the game, it will open up the console automatically.