finish init_key_scheduling