Regedit
Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters
For JIS keyboard layout:
値の名前 : 値の種類 : 値のデータ
LayerDriver JPN : REG_SZ : kbd106.dll
OverrideKeyboardIdentifier : REG_SZ : PCAT_106KEY
OverrideKeyboardSubtype : DWORD : 2
OverrideKeyboardType : DWORD : 7
For US keyboard layout:
LayerDriver JPN : REG_SZ : kbd101.dll
OverrideKeyboardIdentifier : REG_SZ : PCAT_101KEY
OverrideKeyboardSubtype : DWORD : 0
OverrideKeyboardType : DWORD : 0