fix typo and fix keyboard bug.