Preheat oven to 375°F (190°C). Grease a 9x13-inch baking dish with cooking spray.
Cook ground beef and diced onion in a large skillet over medium-high heat until browned; drain excess fat.
Stir barbecue sauce, ketchup, milk, and cubed Velveeta into ground beef; stir over medium heat until cheese melts smoothly.
Stir cooked elbow macaroni into the cheesy beef mixture until well coated.
Transfer pasta mixture to the prepared baking dish; spread into an even layer.
Scatter shredded cheddar cheese evenly over top surface.
Bake uncovered for 20 to 25 minutes until edges bubble and cheese melts completely.