wait till CTRL-C

hello everybody :slight_smile:

i am really looking forword for this post, since i searched google for round about 6 hours now with no match or find.
first off: i am not very good with powershell (or english XD)
so if you could keep your answers as simple as possible, that would be great. :slight_smile:

what i am looking for:
i need a code, that waits until the key combination “ctrl” and “c” is pressed.

i will try to make a quick example what i am trying to create:

while(forever)
{
wait for ctrl+c
print “hello world!”
}

i know i know print isn’t rigth… but hopefully you get the idea of the programm.
what i would like to archive is, that everytime i hit ctrl+c, the programm prints out “hello world!”

is this possible? :slight_smile:
and if yes… how? XD…

thank you already in advance :slight_smile:

greetings…
commandrer