Dispatch pause event when pressing ESCAPE