Fixed keyboard grabbing issue.