update key to Key on line 347