Why won´t my script work?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FruitScript : MonoBehaviour
{
    public string[] key;

    private void Update()
    {
        if (Input.GetButtonDown(key[Random.Range(0, key.Lenght)]));
        {
            ...
        }
    }
}

You have misspelled Length. it should work when that is fixed, as far as i know.