Commodore 64 keyboard matrix code to PETSCII code conversion

KeyMatrix code
(dec, hex)
Normal
(dec, hex)
Shift
(dec, hex)
Commodore
(dec, hex)
Control
(dec, hex)
A10$0A65$41193$C1176$B01$01
B28$1C66$42194$C2191$BF2$02
C20$1467$43195$C3188$BC3$03
D18$1268$44196$C4172$AC4$04
E14$0E69$45197$C5177$B15$05
F21$1570$46198$C6187$BB6$06
G26$1A71$47199$C7165$A57$07
H29$1D72$48200$C8180$B48$08
I33$2173$49201$C9162$A29$09
J34$2274$4A202$CA181$B510$0A
K37$2575$4B203$CB161$A111$0B
L42$2A76$4C204$CC182$B612$0C
M36$2477$4D205$CD167$A713$0D
N39$2778$4E206$CE170$AA14$0E
O38$2679$4F207$CF185$B915$0F
P41$2980$50208$D0175$AF16$10
Q62$3E81$51209$D1171$AB17$11
R17$1182$52210$D2178$B218$12
S13$0D83$53211$D3174$AE19$13
T22$1684$54212$D4163$A320$14
U30$1E85$55213$D5184$B821$15
V31$1F86$56214$D6190$BE22$16
W9$0987$57215$D7179$B323$17
X23$1788$58216$D8189$BD24$18
Y25$1989$59217$D9183$B725$19
Z12$0C90$5A218$DA173$AD26$1A
035$2348$3048$3048$30146$92
156$3849$3133$21129$81144$90
259$3B50$3234$22149$955$05
38$0851$3335$23150$9628$1C
411$0B52$3436$24151$97159$9F
516$1053$3537$25152$98156$9C
619$1354$3638$26153$9930$1E
724$1855$3739$27154$9A31$1F
827$1B56$3840$28155$9B158$9E
932$2057$3941$2941$2918$12
* (asterisk)49$3142$2A192$C0223$DF 
@ (at)46$2E64$40186$BA164$A40$00
: (colon)45$2D58$3A91$5B91$5B27$1B
, (comma)47$2F44$2C60$3C60$3C 
= (equal)53$3561$3D61$3D61$3D31$1F
← (left arrow)57$3995$5F95$5F95$5F6$06
– (minus)43$2B45$2D221$DD220$DC 
. (period)44$2C46$2E62$3E62$3E 
£ (pound)48$3092$5C169$A9168$A828$1C
+ (plus)40$2843$2B219$DB166$A6 
; (semicolon)50$3259$3B93$5D93$5D29$1D
/ (slash)55$3747$2F63$3F63$3F 
↑ (up arrow)54$3694$5E222$DE222$DE30$1E
F1/F24$04133$85137$89137$89 
F3/F45$05134$86138$8A138$8A 
F5/F66$06135$87139$8B139$8B 
F7/F83$03136$88140$8C140$8C 
Clear/Home51$3319$13147$93147$93 
cursor left/right2$0229$1D157$9D157$9D 
cursor up/down7$0717$11145$91145$91 
Insert/Delete0$0020$14148$94148$94 
Return1$0113$0D141$8D141$8D 
Run/Stop63$3F3$03131$83131$83 
Space60$3C32$20160$A0160$A0