keyboard error checking for unrecognized