element.appendChild(input);
input.focus();
input.select();
// If we hit enter, commit the action.
input.addEventListener(Event.KEYUP, keyListener, false);
// If we lose focus, commit the action.
input.addEventListener(Event.BLUR, blurListener, false);
state = new State<D>(node, callback, input, oldLabel);