F3 now hides the debug overlay.
F3 now hides the debug overlay.

file:a/game.py -> file:b/game.py
--- a/game.py
+++ b/game.py
@@ -52,8 +52,11 @@
                     for listener in self.eventListeners:
                         listener.key_down(event)
                 elif event.type==pygame.KEYUP:
-                    for listener in self.eventListeners:
-                        listener.key_up(event)
+                    if event.key==pygame.K_F3:
+                        self.debugOverlay.visible=not self.debugOverlay.visible
+                    else:
+                        for listener in self.eventListeners:
+                            listener.key_up(event)
                 elif event.type==pygame.MOUSEBUTTONUP:
                     for listener in self.eventListeners:
                         listener.mouse_up(event)