public void keyChange(int keyCode, boolean pressing)
    {
        int pressed = 0;
        if(keyCode == KeyEvent.VK_W) pressed = W;
        if(keyCode == KeyEvent.VK_A) pressed = A;
        if(keyCode == KeyEvent.VK_S) pressed = S;
        if(keyCode == KeyEvent.VK_D) pressed = D;
        if(keyCode == KeyEvent.VK_SPACE) pressed = SPACE;
        if(keyCode == KeyEvent.VK_SHIFT) pressed = SHIFT;

        if(pressed > 0)
        {
            keys[pressed] = pressing;
        }

    }