You probably already finished the game by now, but it said that you don't really need to check your inventory for the keys, just interact with the door and you'll be just fine!
Load back from a save file which isn't affected by this bug. Had this problem. Just go to the locked door and allow it to unlock. Don't select it from inventory.