Currently, inputs recompute on each key press, it would be better to update inputs once when the user finishes typing.