Touchscreen area protection, and don't lose programming if escape pressed