public void keyPressed(int keyCode, int rawKeyCode) {
        if (rawKeyCode == GameCanvas.KEY_NUM5) {
            if (gameState == PLAY_STATE) {
                world.applyFinalAttack();
            } else {
                MainMenu mainMenu = new MainMenu(engine);
                changeScene(mainMenu);
            }
        } else if (keyCode == GameCanvas.FIRE && gameState != PLAY_STATE) {
            profile.setMoney(world.getHUDMoney() + profile.getMoney());
            profile.setBestCombo(level, Math.max(profile.getBestCombo(level),world.getComboObj().getHighestCombo()));
            profile.setHighscore(level, Math.max(profile.getHighscore(level),hud.getScore()));
            profile.setSavedAnimals(level, Math.max(profile.getSavedAnimals(level), hud.getLife()));
         
            if(gameState == WIN_STATE)
                profile.setLastLevel(Math.max(profile.getLastLevel(), level));
            
            MainMenu mainMenu = new MainMenu(engine);
            changeScene(mainMenu);
        }

    }