Some keyboard ASCII codes for Arduino Pro Micro not working?

Hello everyone,

There are some keys that don't seem to work when using the Arduino Pro Micro as a keyboard.

Regarding https://www.arduino.cc/en/Reference/KeyboardModifiers:

KEY_LEFT_CTRL should be 0x80
KEY_LEFT_SHIFT should be 0x81

KEY_PAGE_UP should be 0xD3
KEY_PAGE_DOWN should be 0xD6
KEY_HOME should be 0xD2
KEY_END should be 0xD5

I can't make those work. I'd like that, for instance, KEY_HOME behaved like the '7' key of the right numeric keypad with the Num Lock disabled (so it doesn't print "7").

Is there anything more to consider that I'm missing?

Thank you in advance!

const int north = 4;
const int south = 5;
const int west = 2;
const int east = 3;
const int northwest = 6;
const int northeast = 7;
const int southwest = 8;
const int southeast = 9;
const int shift = 10;
const int control = 16;

void setup() {

pinMode(north, INPUT_PULLUP);
pinMode(south, INPUT_PULLUP);
pinMode(west, INPUT_PULLUP);
pinMode(east, INPUT_PULLUP);
pinMode(northwest, INPUT_PULLUP);
pinMode(northeast, INPUT_PULLUP);
pinMode(southwest, INPUT_PULLUP);
pinMode(southeast, INPUT_PULLUP);
pinMode(shift, INPUT_PULLUP);
pinMode(control, INPUT_PULLUP);

Serial.begin(9600);
Keyboard.begin();

}

void loop() {

if (digitalRead(north) == LOW) {
Keyboard.write(0xDA);
}
if (digitalRead(south) == LOW) {
Keyboard.write(0xD9);
}
if (digitalRead(west) == LOW) {
Keyboard.write(0xD8);
}
if (digitalRead(east) == LOW) {
Keyboard.write(0xD7);
}
if (digitalRead(northwest) == LOW) {
Keyboard.write(0xD2);
}
if (digitalRead(northeast) == LOW) {
Keyboard.write(0xD6);
}
if (digitalRead(southwest) == LOW) {
Keyboard.write(0xD5);
}
if (digitalRead(southeast) == LOW) {
Keyboard.write(0xD3);
}
if (digitalRead(shift) == LOW) {
Keyboard.write(0x81);
}
if (digitalRead(control) == LOW) {
Keyboard.write(0x80);
}

}

Anyone?

(deleted)

spycatcher2k:
Rude - I'm out.

I am sorry. It was not my intention.

(deleted)