Global exit listener in bash

I have a script with a whole lot of different functions and want to set teh script so that at any point a key or series of keys can be pressed to exit out and into the main menu function. Rather this than endlessly creating, 'Return to main' menus.

Something along the lines of Ctrl+q for example
Any ideas?

How about using stty to remap CTRL-Q to interrupt and then trapping the signal? Of course this would also stop anyone breaking out of the script with CTRL-C which may or may not be a good thing.

---------- Post updated at 12:46 PM ---------- Previous update was at 12:38 PM ----------

Another option is to write your own menu function and add quit option by default (something like this):

mymenu()
{   select opt in $@ Quit
     do
          if [ -z "$opt" ]
          then
              echo "Option $REPLY is invalid"
           else
               [ "$opt" = "Quit" ] && exit 1
               return $REPLY
           fi
     done
}

mymenu one two three
case $opt in
   one) echo "You picked one" ;;
   two) echo "Two" ;;
esac