I would not recommend putting your private keys in a will. Instead, simply inform your loved ones about your Bitcoin and educate them on how to access it in the unfortunate event of your passing. Write detailed instructions for where to find the private key along with any other passphrase etc that you may have. Don’t overcomplicate your security setup. Our biggest threat can be ourselves sometimes when it comes to security.