improve the response of keyboard