Use Minecraft methods.

This allows the player to change the key and is the proper way to do it.