The gold key opens the lock.
You need to let the game show 37 keys, and then a gold one will appear just like the others. So you need to be pick to tap the screen and grab it. Make sure it is straight on when you move it up to the lock or it won't work.
Courtesy Helpy Helper