use KeyEvent instead of nsIDOMKeyEvent