How can I take a screenshot while holding down the control key?
Open Terminal and type the command below. From there you have 10 seconds before the screenshot is taken (you can do whatever you want or hold any keys you want in that time).

Afterwards, you can find the screenshot in the directory you executed the command.

screencapture -T 10 screenshot.jpg