fix keyboard limit bug and EnrollUI close bug