What you have should work fine, assuming
- IsReadOnly is false. If you set this to true, then obviously the Enter key won't work.
- The control containing the TextBox is not clipping the TextBox, so it appears that the Enter key did not work.
I'd suggest you try this outside of your project to get a better indication of the actual issue.