Found a bug, you can pass through the lock without the key.
thanks for telling me that I forgot to add the solid part :)