public void keyReleased(KeyEvent e) {
        int key = e.getKeyCode();

        if (key == KeyEvent.VK_A) {
            dx = 0;
            moominCurr= moominl[0];
        }

        if (key == KeyEvent.VK_D) {
            dx = 0;
            moominCurr = moomin[0];
        }

        if (key == KeyEvent.VK_W) {
            if(dir == 0)
            	moominCurr = moominl[0];
            else
            	moominCurr = moomin[0];
        }

        if (key == KeyEvent.VK_S) {
           //dy = 0;
        }
        
        if (key == KeyEvent.VK_SHIFT){
        	frozen = false;
        }
        
        if (key == KeyEvent.VK_CONTROL){
        	isCtrl = false;
        }
    }