@Override
    public void processKeyPressed(KeyEvent e){
        if(e.getKeyCode() == KeyEvent.VK_RIGHT){
            mountains.setVector(-1.0, 0);
            player.setRight(true);
        }
        if(e.getKeyCode() == KeyEvent.VK_LEFT){
            mountains.setVector(1.0, 0);
            player.setLeft(true);
        }      
        if(e.getKeyCode() == KeyEvent.VK_UP){
            player.jump();
        }
        if(e.getKeyCode() == KeyEvent.VK_DOWN)
            player.setDown(true);
        if(e.getKeyCode() == KeyEvent.VK_SPACE)
            player.attack();
    }