did you try
sendkeys {NUMLOCK}
to see if it will toggle it back?

personally i avoid sendkeys, as it will not work with uac turned on, best to use some alternative