public bool control;
Описание
Нажата ли клавиша Control? (Только чтение)
Возвращает true, если удерживается любая клавиша Control.
using UnityEngine;
public class Example : MonoBehaviour
{
void OnGUI()
{
Event e = Event.current;
if (e.control)
{
Debug.Log("Control was pressed.");
}
}
}