As he was about to open the front door to let himself out, a key from the other side raised the latch, and Sir Felix, returning from his club, entered his mother's house. 
As he was about to let himself out, the front door was opened from the other side, and Sir Felix entered. 