Exit the process when the `esc` key is pressed