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()