Why my topdown 2D character slows down when running diagonally along a wall ?

Only when they press UP + LEFT/RIGHT or DOWN + LEFT/RIGHT against the wall the character gets slowed down