I tried with several keys and they all work as if they were always pressed
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Porta1A2 : MonoBehaviour
{
public bool open;
public GameObject rotate;
void Start()
{
open = false;
}
void Update()
{
if (Input.GetKey(KeyCode.F));
{
Debug.Log("presss");
open = true;
}
if (open == true)
{
transform.localRotation = Quaternion.Lerp(transform.localRotation, rotate.transform.localRotation, 2);
}
}
}