avr: fixed command key input
avr: added pio test mode