If a player dies when keepInventory is on and doesn't respawn before it is turned off, the items in the inventory don't drop or return to the players inventory when they respawn and the player loses all of their items with no way of getting them back.
Duplicates MC-88193