anding by the key_held or key_pressed offsets....:
0x000001 Left Arrow
0x000002 Right Arrow
0x000004 Up Arrow
0x000008 Down Arrow
0x000010 Show Mini-Map
0x000020 Shoot
0x000040 Jump
0x000080 Next Weapon
0x000100 Previous Weapon
0x000200 Shift
0x000400 F1
0x000800 F2
0x001000 Status/Menu Screen
0x008000 Escape
0x010000 "," Comma
0x020000 "." Period
0x040000 "?" Question Mark
0x080000 "L" The Letter L
0x100000 "=" Equal