title: Bash script countdown timer needs to detect any key to continue
body: <p>I need to listen for any key press in a countdown timer loop.  If any key is pressed then the countdown timer should break out of it's loop.  This mostly works except for the enter key just makes the countdown timer go faster.</p>
  
  <pre><code>#!/bin/bash
  for (( i=30; i&gt;0; i--)); do
      printf "\rStarting script in $i seconds.  Hit any key to continue."
      read -s -n 1 -t 1 key
      if [[ $key ]]
      then
          break
      fi
  done
  echo "Resume script"
  </code></pre>
  
  <p>I just can't seem to find any examples of how to detect that enter key anywhere online.</p>