atmel: block sending button events while screen is off