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