Text editing and the escape button