Fix: Input's repeated to onUpdate

Try to fix issue #41 and #11, but it needs some tests. How should I test this? I'm not realy sure how to do it, as there are not other tests I can look at.