From QB64.org wiki
Extended keys are the right Ctrl and Alt, Arrow, Insert, Delete, Home, End, Page Up and Page Down keys not on number pad.
- The extended keys might return the Left Shift release scancodes instead of the press code + 128 when read by INP(96).
- The Number Lock key could be set so that the Left Shift return code was not returned, but the lock could be either on or off.
- The 170 left shift release code is not returned by QB64 when INP($H60) is used to read the extended release scancodes.