The key code for the front door can be found in the basement, there you will find a computer and entering the commands shown on the screen will reveal the code for the front door.
I checked the terminal when I press "e" on the computer the terminals codes doesn't work as well as I can't quite the terminal screen. Everytime I press Alt+F4 to quite the game.