Updated key code