# build a trap function with any key

# map Return/Enter/Ctrl+m in your terminal to interrupt signal
stty intr ^M

ctrl_c() { echo 'Someone pressed Return/Enter/Ctrl+m.'; }

# restore the default at the end of the program
back2default() { stty intr ^C; }

trap ctrl_c INT
trap back2default EXIT

# a placeholder for more meaningful code
sleep 10
