add setKeypadEnabled function