Implement basic input editing

Thanks, d3.