With ANSI C, this is not possible because ANSI C does not define any keyboard access method in this way. A lower level function in it that receives input from the user, getcwhich returns a character after it has been entered in stdinand the ENTER key is pressed.
Win32 API, , . (WndProc) WM_CHAR. , CTRL SHIFT.
P.S. , , , , - , Autohotkey?