Fix keys not being restored in savegames

Whoops.