fix typo and fix keyboard bug.

fix demo typo and keyboard switch bug.