def onKeyPress(self, sender, keyCode, modifiers):
        if keyCode == KeyboardListener.KEY_ENTER and sender == self.todoTextBox:
            id = self.remote.addTask(sender.getText(),self)
            sender.setText("")

            if id<0:
                self.status.setText("Server Error or Invalid Response")
This functon handles the onKeyPress event, and will add the item in the text box to the list when the user presses the enter key.  In the future, this method will also handle the auto complete feature.
dataset/ETHPy150Open anandology/pyjamas/examples/misc/djangotasks/media/TodoApp.py/TodoApp.onKeyPress