Solution:


#!/bin/bash
echo "Press the UP arrow."
read -sn1 esc
read -sn1 -t 0.001 bra # "-t 0.001" is for robust-ness so pressing just any key wont put it into the wrong "read"
read -sn1 -t...