The full expression is "lock (someone) up and throw away the key", and the sentence would have been better that way. If you throw away the key, they will never get out.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.