Int 16H [AT] [PS/2] Function 12H (18) Get enhanced keyboard flags

Obtains the status of various enhanced keyboard special keys and keyboard driver states.

Call with:

AH = 12H

Returns:

AX = flags

Bit Significance (if set)

0 right Shift key is down

1 left Shift key is down

2 either Ctrl key is down

3 either Alt key is down

4 Scroll Lock toggle is on

5 Num Lock toggle is on

6 Caps Lock toggle is on

7 Insert toggle is on

8 left Ctrl key is down

9 left Alt key is down

10 right Ctrl key is down

11 right Alt key is down

12 Scroll key is down

13 Num Lock key is down

14 Caps Lock key is down

15 SysReq key is down

Note:

Use this function for the enhanced keyboard instead of Int 16H Function 02H.