code: def onKeyInCommandEntry(self, event):
          '''Called when a key is pressed when the command entry box has focus.'''
          if event.char == '\r':
              self.onSendCommand()
              self.canvas.focus_set(f onKeyInCommandEntry(self, event):
          '''Called when a key is pressed when the command entry box has focus.'''
          if event.char == '\r':
              self.onSendCommand()
              self.canvas.focus_set()
docs: Called when a key is pressed when the command entry box has focus.