keyboard bugfix