Text box is defined in following code:
I had similar problem, I solved it with this question using AcceptsReturn="True". So I think, this should work.
AcceptsReturn="True"