def keyDown_(self, event):
     s = event.characters()
     key = s[0].upper()
     if key == chr(27):
         self.parentWindow.delegate().hide()
     else:
         NSView.keyDown_(self, event)
 def keyDown_(self, event):
     s = event.characters()
     key = s[0].upper()
     if key == chr(27):
         pass
             # TODO video: "Handle Escape"
     else:
         NSView.keyDown_(self, event)