Added printing on key pressed