A Floyds Knobs man has been accused of beating and holding his pregnant ex-girlfriend captive for hours inside the basement of her home.