How did the dog get into the locked cemetery at

How did the dog get into the locked cemetery at night? He used a skeleton key.