You can enter a literal escape character with the sequence $'\e'.
echo "Please hit escape:"
read -s -n1 variable
case $variable in
$'\e') echo "escape key pressed" ;;
*) echo "that's not it" ;;
The bash man page section on quoting explains it in more detail.