public void keyPressed(KeyEvent e) {
        double[] angl=new double[3];
        switch (e.getKeyCode()) {
     
            // W
        case 87  :
            this.setLoc(this.getLoc().sum(this.forward));
            break;
            
          // A  
        case 65  :
            this.setLoc(this.getLoc().sum(this.left));
            break;
            
           // S
        case 83 :
            this.setLoc(this.getLoc().difference(this.forward));
            break;
            
            // D
        case 68 :
            this.setLoc(this.getLoc().difference(this.left));
            break;

        // R reset angle
        case 82 :
            this.forward.setX(0.0);
            this.forward.setY(0.0);
            this.forward.setZ(1.0);
            this.left.setX(1.0);
            this.left.setY(0.0);
            this.left.setZ(0.0);
            this.angle[0]=0.0;
            this.angle[1]=0.0;
            this.angle[2]=0.0;
            break;
            
        // F change fillFaces
        case 70 :
            if(this.getFill()){
                this.setFill(false);
            }
            else{
                this.setFill(true);
            }
        break;
            
        }
    }