
One odd thing about this: Windows maps scancode 0x6E to F23, and so this patch is doing the same for Linux. But if you have a genuine IBM 122-key Host Connected keyboard, F23 only sends 0x6E if you've switched to the rarely-used scancode set 3. At power-up it sends 0x6A.
My best guess is that the Windows developer who originally mapped 0x6E to F23 was using a Key Tronic 122-key keyboard, which does send 0x6E in both modes.