Fixed keyboard press issue