Fixing handling of Enter key when AcceptsReturn is false.