void CheckRightClick()
    {
        //Debug.Log("right click");
        Collider theCollider = DoRaycast();

        if (theCollider == null)
        {
            return;
        }

        GameObject shipPart = FindShipPart(theCollider);

        if (shipPart == null)
        {
            return;
        }

        KeybindableComponent kc = shipPart.GetComponent <KeybindableComponent>();

        if (kc == null)
        {
            return;
        }
        //Debug.Log(kc);
        componentKeybindDialog.OpenDialog(kc);
    }
    public void OpenDialog(KeybindableComponent keybindableComponent)
    {
        this.keybindableComponent = keybindableComponent;
        gameObject.SetActive(true);

        transform.Find("Keybind").GetComponent <Text>().text = keybindableComponent.keyCode.ToString();
    }