This appears to be more of a command than a question. We're not going to do your homework for you, although we will help. How much of it can you do, so far?
Since Nasm will do many things it is a good idea to tell us "what OS", to start with. I hope it's DOS, as getting at a "keyboard interrupt" in a protected mode OS is going to be much more difficult! I hope by "keyboard interrupt" you mean the BIOS int 16h - the actual hardware interrupt (usually int 9) which is triggered when a key is pressed or released would be more difficult (although it can be done).
If you had the extended ascii codes at hand (fairly easy), would you know how to display them (a common beginner problem)? What part(s) are you having trouble with?
The general rule here is "the more they give us, the more we'll give them" (and vise versa). So far, you haven't given us much. Help us help you! Show us what you've got...
(hint: when posting code, put the word "code" in square brackets at the start of the code, and "/code" in square brackets at the end.)
Best,
Frank