Retirement tax questions

TurboTax software knows to put the federal income taxes withheld on the Form 1099-R as a federal tax payment on the federal tax return and the state income taxes withheld on the state tax return as a state tax payment.