How does the sentence end?

I tried to fit the key into the lock but it didn't work because the
lock was for a different key.