savegame: refactoring keyname_for method