How to check if control is pressed in a text field?

I need to be able to see if control is pressed while entering in keys into a string in a textfield.
I’d like to do something like this, maybe in hexadecimal notation

if (c == 0xA2)

An extensive hour and half of googling yielded no results.
Do you know how to do this?
Thanks!

if(Input.GetKey(KeyCode.LeftControl)){
//stuff to do when control is pressed
}

This is how I’d basically check if ctrl was pressed while a text field was focused. It’ll register every frame ctrl is pressed, so if the intention is to react once to pressing ctrl (i.e. Input.GetKeyDown type of behavior) then additional checks need to be added.

GUI.SetNextControlName("CtrlField");
myString = GUILayout.TextField(myString);
		
if(Event.current.control && GUI.GetNameOfFocusedControl().Equals("CtrlField"))
	Debug.Log("ctrl pressed while textfield focused");