Modified: Tutorial6 key event handling code into C#/jQuery functions