I am not entirely certain, but a couple of methods might work to turn off cheats in Portal. You could try entering the cheat command again to toggle it off, or back out to the main menu and reload your save.
Either approach is worth attempting, as one of them should reset the game to its normal state.