Deductions & credits

Correct, when you live and work in two different states, TurboTax will work behind the scenes to not only calculate the taxes owed to what taxing authority, but it will also figure out exactly whether you should itemize or take the standard deduction while taking other things into consideration (like your mortgage).  Here is a helpful TurboTax article about figuring out what's owed when multiple states are involved.