some keyboard bugfixes