Fix keyboard not hiding when it should

Bug: 63493
Change-Id: I8e9c59bc4d37092a4035c661e559700e64e48d82