squash some keyboard bugs