Sentence: I was trying to open the lock with the key, but someone had filled the  keyhole with chewing gum, and I couldn't get it in.
 Reason: The 'it' refers to the key because I was trying to open the lock with the key, but someone had filled the keyhole. 
 Question: Is the above reasoning correct or wrong? 