Handle encoder events in Menu.