Code:

while (1)
{
if (key_w) camera.x += 3*time_step;
if (key_s) camera.x -= 3*time_step;
if (key_a) camera.y += 3*time_step;
if (key_d) camera.y -= 3*time_step;
wait(1);
}


hope this helps..