CRT Documentation: Reference

IsCtrlPressed

[This function does not have a corresponding DOS function.]

Returns the status of the Ctrl key.

function IsCtrlPressed: boolean;

Parameters

This function has no parameters.

Return Values

True if Ctrl was held down during the last ReadKey call, otherwise False.

Remarks

This function uses the last state as retrieved with the last ReadKey call, it does not check the current status. This makes it easier to trap specific key combinations since you can reliably check whether a specific key combination was made.

See Also

Crt Overview, ReadKey, IsAltPressed, IsShiftPressed