A Massachusetts man accused of killing a 15-month old boy in Bangor, Maine, will remain jailed indefinitely while awaiting trial.