code: function (evt) {
      newTodoTitle = evt.target.value;
      if (evt.keyCode === 13 /* Enter */) {
        addTodo();
        newTodoTitle = "";
        evt.preventDefault();
      } else if (evt.keyCode === 27 /* Esc */) {
        newTodoTitle = "";
        evt.preventDefault();
      }
    }
docs: event handlers