atmel: block sending button events while screen is off

based on @Mustaavalkosta's work