Lock and unlock, control pathfinding and visibility, and some minor things like listening by the door or trying to look through the keyhole.