更改按键出发为keyPressed