diff --git a/thermopi/screen.py b/thermopi/screen.py index b4a23e9..57874f3 100644 --- a/thermopi/screen.py +++ b/thermopi/screen.py @@ -22,6 +22,9 @@ def main(windowed_mode): running = False if event.type == pygame.MOUSEBUTTONDOWN: running = False + if event.type == pygame.KEYDOWN: + if event.key == pygame.K_ESCAPE: + running = False pygame.display.flip()