Fixed the problem of keyboard delaying