A more Scottish way of saying "keep the head"; it means to stay calm and keep your mind away from going crazy-loco or angry.
"Look, it's no even worth it. Keep the heid!"