this is a full working example that can be used as a good start point.
the bluetooth module is just for “la bonne bouche”.
if you use Serial.pint() instead of BT.write() you should get the same result.
try this
while(1){
Serial.print(31); //Numlock
delay(500);
}
and check the led of the Numlock
PS: I found this on the hard way trying to debug the RFID sensor, I succeed to move my mouse and close some windows