ESC's ASCII code's 27, but I don't know if that'll help w/o seeing your code...