Int 16h, 05h            Keyboard Write                                   many

Puts a scan code/character code combination in the keyboard
buffer.

Entry AH = 05h
CH = Scan code
CL = ASCII character code

Return AL = 00h - Operation successful
01h - Buffer full

──────────────────────────────────────────────────────────────────

This service is available only for ATs dated 11/15/85 and after,
and XT 286s.

This service "fools" a program into thinking that keys have come
from the keyboard. A good example of this would be the operation
needed by a program that implements keyboard macros.

For a description and list of scan codes, see "Scan Codes."