fix KeyEvent.java to allow build