keyPressed event print added