Why yes I have done that
Can you get the other set of keys?
Sometimes you can just have another key made from the code on
the matching lock- in this case the glovebox or console lid. Any
locksmith can do this readily if you are unable to master the
mysteries of extracting the glovebox lock cylinder- there is a
secret tang to depress which releases the lock cylinder. Or you can
sometimes unscrew the bezel that holds it together.
Or, find the other set of keys.
Press the remote trunk unlock button in the glovebox if you have
that feature.
Worst case, the back seat can be removed and the lock accessed
from there.