update keysettings.