Fixed bug where keyboard did not update properly