Why do keys stick, bend, or snap off inside locks?

https://everydaysecurity.slatecurrent.com/posts/why-do-keys-stick-bend-or-snap-off-inside-locks

Keys stick, bend, or snap inside locks due to common wear and improper use. A worn key or lock mechanism can cause binding, while forcing a key when the lock is misaligned or obstructed puts extra stress on the metal. Over time, dirt, debris, or rust inside the lock can also increase friction, leading to bending or breakage. Signs include difficulty turning the key or a grinding sensation. If a key is stuck or broken, avoid excessive force, as this can damage the lock further.