public boolean dispatchKeyEvent(KeyEvent e) {
    if (e.getID() == KeyEvent.KEY_PRESSED) {
        keys[e.getKeyCode()] = true;
        YSPL.player.newInput();
    } else if (e.getID() == KeyEvent.KEY_RELEASED) {
        keys[e.getKeyCode()] = false;
    } else if (e.getID() == KeyEvent.KEY_TYPED) {
        
    }
    return false;
}