...and something for the code, replace:

if(camera.tilt > 90)
{
camera.tilt = 90;
}
else if (camera.tilt < -90)
{
camera.tilt = -90;
}

with:

clamp (camera.tilt,90,-90);