0040h:0096h           Keyboard Status and Type Flags

Length: 1 byte

This byte holds keyboard status information.

Keyboard Status Information

7 6 5 4 3 2 1 0
x . . . . . . . Read ID in progress
. x . . . . . . Last character was first ID character
. . x . . . . . Force Num Lock if read ID and KBX
. . . x . . . . 101/102-key keyboard installed
. . . . x . . . Right Alt key is pressed
. . . . . x . . Right Ctrl key is pressed
. . . . . . x . Last code was E0 Hidden Code
. . . . . . . x Last code was E1 Hidden Code

Use Int 16h, Service 12h, to obtain some of this information.

Addresses 0040h:0017h and 0040h:0018h also contain keyboard status
information.