On the Magic Keyboard with Numeric Keypad, it might happen that the numeric keypad (numpad) doesn't work.

Simply press the clear or key, that's the key below F16, and it will work again.

The clear key acts like the Num Lock key on Windows keyboards.