For more info on keyboard commands etc. refer to 
c:\my documents\computer\myos\hardware\keyboardcommands.htm

;*************************************

This chart is the chart used to convert the scan codes to ascii codes:
;**** REGULAR ****
scan_to_ascii:
;scans:  1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25
db      27,49,50,51,52,53,54,55,56,57,48,45,61, 8, 9,113,119,101,114,116,121,117,105,111,112
;scans: 26,27,28,29,30, 31, 32, 33, 34, 35, 36, 37, 38,39,40,41,42,43, 44, 45,46, 47,48, 49, 50 
db      91,93,13, 0,97,115,100,102,103,104,106,107,108,59,39,96, 0,92,122,120,99,118,98,110,109
                 ;^ctrl                                left shift^
;scans: 51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68
db      44,46,47, 0, 0, 0,32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
;      right shift^  ^  ^alt  ^  ^-these are F1 through F10-^
; ?print screen or *?^        ^caps lock
db      0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
;these 15 0's are the following: Numlock, Scroll Lock, Home or 7, Up or 8,
;Page Up or 9, Gray -, Left or 4, Center or 5, Right or 6, Gray +, End or 1,
;Down or 2, Page Down or 3, Ins or 0, Del or .
TIMES  49  db  0;reserve 49 bytes between 83 and 133 for unused scan codes
db      133,134  ;F11 and F12
db        0,  0
TIMES  121  db  0   ; cover to end = 255

;**** SHIFTED SCAN TO ASCII ****
shift_scan_to_ascii:
;scans:  1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
db      27,33,64,35,36,37,94,38,42,40,41,95,43, 8, 9,81,87,69,82,84,89,85,73,79,80
;scans:  26, 27,28,29,30,31,32,33,34,35,36,37,38,39,40, 41,42, 43,44,45,46,47,48,49,50 
db      123,125,13, 0,65,83,68,70,71,72,74,75,76,58,34,126, 0,124,90,88,67,86,66,78,77
                   ;^ctrl                         left shift^
;scans: 51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68
db      60,62,63, 0, 0, 0,32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
;      right shift^  ^  ^alt  ^  ^-these are F1 through F10-^
; ?print screen or *?^        ^caps lock
db      0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
;these 15 0's are the following: Numlock, Scroll Lock, Home or 7, Up or 8,
;Page Up or 9, Gray -, Left or 4, Center or 5, Right or 6, Gray +, End or 1,
;Down or 2, Page Down or 3, Ins or 0, Del or .
TIMES  49  db  0  ;reserve 49 bytes between 83 and 133 for unused scan codes
db      133,134  ;F11 and F12
db        0,  0
TIMES  121  db  0   ; cover to end = 255