Start simply: write somewhere on the screen the keystroke received, e.g. put it on first byte of video memory as it is just text mode (not sure at the moment if it was segment at 0b800h or something different). This way you will see if your keyboard hook works fine. No checks for the key, no memory dump, just print the ascii code.

Then you can move to next step.