pub fn decode_key_location(code: usize) -> Location