@pratitghosh Use Content.setKeyPressCallback()
https://docs.hise.dev/scripting/scripting-api/content/index.html#setkeypresscallback
It accepts JUCE key descriptions. The numpad keys are named "numpad 0" to "numpad 9".
https://docs.juce.com/master/classjuce_1_1KeyPress.html
A few gotchas:
there's no keyRelease or keyUp trigger, so you can't detect held keys - for one-shot drums this is fine held keys repeat at the OS repeat rate, so maybe check for that the key triggers only fire when he plugin has focus, otherwise the DAW will action the keypresses instead