Fixed input position detection
recognizes switches and gets next line