Thanks to the link from the answer above and the fact that I am an AutoHotKey user. I could provide a pure AutoHotkey Script for the demanded functionality.
What the Kana key does is changing the Input from Kana to Romanji and vice-versa. I tested it and got that behavior.
Thanks to the already made LED implemantion from: https://autohotkey.com/board/topic/9587-keyboard-led-control-capslocknumlockscrolllock-lights/ it makes things pretty easy. (Thank you, Ross Presser for taking your precious time to link it) Taking that code for granted and already imported... In AutoHotKey it would be used like:
Kana_Romanji := false
; Now making a hotkey for Kana Modifier Key (0x15 / VK_Kana, in AHK = vk15)
vk15::
if Kana_Romanji ; swap the off and switch to swap the LED state for it. Currently: Romanji when it is on, Kana when it is off.
KeyboardLED(2, "off")
else
KeyboardLED(2, "switch")
Kana_Romanji := not Kana_Romanji
return
A pure AutoHotKey script for the same functionality would be:
Kana_Romanji := false
; Now making a hotkey for NumLock
NumLock:: ; Change this to "VK15::" if your layout is using the key and delete the send {vk15} or comment this and uncomment the below one.
Send {vk15} ; Actual Kana_Modifier key as given from MSDN
sleep 10 ; Needs some delay because without delay Windows picks up the actual NumLock state and turns the light off. At least it did when I tried without it.
if Kana_Romanji ; swap the off and switch to swap the LED state for it. Currently: Romanji when it is on, Kana when it is off.
KeyboardLED(2, "off")
else
KeyboardLED(2, "switch")
Kana_Romanji := not Kana_Romanji
return
A ready script that should work for you: https://pastebin.com/c3dcD8Gs
(Read/Verify it, Save it as .ahk and open it with AutoHotKey.)
PS: I am also a NumLock key hater. Except that I always keep it off and never use it to type the numbers. It is tested in the outdated known as vanilla version of AutoHotKey (Version 1.0.48.05) but it should work on the newer ones too.
I hope it is what you need. Good luck.