There's 2 different sets of scan codes. The first one is normally used when the keyboard sends data to the keyboard controller chip. The keyboard controller chip usually converts this into a second (XT compatible) scan set before the keyboard driver reads it.
Therefore, you should be getting these scan codes (with XT compatible tanslation): http://panda.cs.ndsu.nodak.edu/%7Eachap ... odes1.html
With these scan codes 68 (0x44) is the 'F10' key, and ESCAPE would be 1 (0x01).
If you turn the XT translation off you would get these scan codes instead: http://panda.cs.ndsu.nodak.edu/%7Eachap ... odes2.html
With these scan codes 68 (0x44) is the letter 'O' key, and ESCAPE would be 118 (0x76).