Implemented input-mode (fixes #1)