The following video will show you how to model a door that automatically lets the player pass when they have the key card for it.
Created with Mobirise