Add hand-rolled Ctrl-W support to input pane.