Remove unused variable.
Simplify escape toggle.
Drop unnecessary count reset.