Remove some code, test with xbee S1 DigiMesh (work with xbee API S2).
Optimized input management