重新实现KeyPressEvent