He knocked and entered.
The man knocked before he entered.