updating keyboard functionality