{
  var maxspeed;
  if keyboard_check(vk_shift) maxspeed = 3 else maxspeed = 1.5;
  if (speed > -maxspeed) speed = max(-maxspeed,speed-0.4);
}