Opening a grave holding multiple Keys resulted in losing all of them. This has been fixed now.
This simple Datapack adds graves on death, which can be opened using a key!