removed console print in keypress function