fix KeyCode back compatible