Quoting myself from the recent thread:
Locke's Key is a thing.
Locke's Key unlocks the dirty door.
Before examining Locke's Hand for the first time:
now Locke's Key is inside Locke's Hand;
One way to achieve the right result is to use Before, see above, instead of After, because otherwise the key will only be in the hand after looking at it / examining it.
(As zarf said, LOOK AT and EXAMINE are the same for objects, as you can see with your version of the code by first looking at the hand, then examining it; and the other way round [after restarting, of course] – in both cases, in your version, the key first won’t be there and then will be there on the second try.)