Numlock autocast

I’m used to cast spells automatically using the number pad. To do this, I went to the ‘settings’ and in the right column of ‘KEYBOARD’, I put in numbers and I therefore had the spell which was casted with the two keys (a-z-e-r and the chosen numeric keypad key). This no longer seems to be possible. A solution ?