Set up a trap, like this:
int_trap() {
echo "Ctrl-C pressed"
}
trap int_trap INT
echo "Enter line or press Ctrl-C"
xterm
echo "Continuing the script"
See the bash
manpage for more info and usage examples in e.g. /usr/bin/bashbug. Be careful however, the traps may prevent your script from exit cleanly when it's really needed