Code:
//////entitys\\\\\\

ENTITY* arnout;

//////variables\\\\\\

var punten_arnout = 0;
var punt_randy = 0;
var punt_freek = 0;

//////functions\\\\\\

function geef_arnout_punt()
{
	arnout = me;
	set(my,PASSABLE);
	while (my)
	{
		if (key_w == 1)
		{
			if (punten_arnout >= 0)
			{
				punten_arnout += 5;
			}
			else
			{
				punten_arnout += 5;
			}
		}
		wait (1);
	}
}

function main()
{
	video_screen = 2;
	video_mode = 8;
	screen_color.red = 1;
	screen_color.green = 1;
	screen_color.blue = 1;
	fps_max = 250;
	mouse_map = mouse_pcx;
	mouse_mode = 2;
	while (1)
	{
		mouse_pos.x = mouse_cursor.x;
		mouse_pos.y = mouse_cursor.y;
		wait (1);
	}
}

//////panels\\\\\\

PANEL* startmenu =
{
   pos_x = 0;
   pos_y = 0;
   layer = 1;
   bmap = startmenu_pcx;
   digits(35, 10, "Punten van Arnout: %0.f", *, 1, punten_arnout);
   digits(35, 20, "Punten van Randy: %0.f", *, 1, punt_randy);
   digits(35, 30, "Punten van Freek: %0.f", *, 1, punt_freek);
	//button (350, 300, "spel.pcx", "spel.pcx", "spel_over.pcx", zoemer_start, NULL, NULL); //volgend spel
   flags = VISIBLE;
geef_arnout_punt();
}


"punten_arnout" will not change when i press W. What's wrong?