update_open_lightmask changed to update_open_keys