emptying keyPressed while bluring window