keyPress function 0.5