Are there settings in Photoshop CS6 to confirm and deselect for example a text frame when pressing escape?
By default escape cancels the editing.
Use the Enter key.
Not Return or ESC keys.
Adobe logic is that ESC means "never mind" or "cancel" and never "commit".
As @BillyKerr points out, Adobe did add a preference option to alter the default behavior for text editing in more recent versions, but that is not going to be helpful for CS6.