You have to avoid the character, look for clues around rooms and piece together the code to enter on the keypad. Sorry about my poor explanation.