Quote Originally Posted by MilkieTea View Post
Those slots are only graphical and do not represent actual inventory space.
^ this.

The Key Items are stored as "do you have this yes/no" toggles. The data is stored completely differently, but for the sake of consistency & ease of use it's displayed in your GUI as if it were a part of your regular inventory.