Add kbd_peekMask() and kbd_getMask() functions.