added locked door/key handling