<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reject(self):
 """Handle ESC key"""


        if self.controller.is_running:
            self.info(self.tr("Stopping.."))
            self.controller.is_running = False