Man, I really need to make that key puzzle clearer lol. Only thing that comes to mind is that you need to first take the key out of the machine, and then go to the lock and click it