Keymap.getNumLockState

bool getNumLockState()

Returns whether the Num Lock modifer is locked.

Returns

true if Num Lock is on