Fixes super-confusing bug where keys are never added to key_mapping_cache

...still not really sure how this ever worked