State based. Basics программирование. input states.