Added and documented input handler interface. Closes #271.