restruct InputMethod.md from old file