Fix missing enter key

With hardware keyboard enabled, "enter" key is missing and there
is no way to enter multiple line text. This commit handles this
special case.

Change-Id: Id9d77d0c8b786a057f6b44f779a90cd85fa34832
Merge "Fix missing enter key" into studio-1.0-release