added arduino hard keypress detector