Need help with character arrays and "IF"

I have the same algorithm like in the picture but without bool.

I need to check the 1 typed character and if it’s eng - allow to type only eng or if the 1 rus - allow rus.