fixed buggy keyboard interface