Wow, I never encountered that bug until after seeing your post. I think what's happening is the key items list gets corrupted when a key is used from the middle of the list (e.g. grabbing the yellow key, then the magenta key, then opening the yellow door in Level 2). The inventory was a rush job and clearly I didn't test it enough...
Thanks for the detailed feedback!