On clicking the following Keys nothing happens even after en

Enter - I need to edit the Cell



right arrow - I need to move to the right Cell



Left arrow - I need to move to the left cell



Up arrow - I need to move to the left cell



Down arrow - I need to move to the Down cell



This was the code i used to implement the functions . I took the Ascii key value of “enter - 13” right arrow and also obtained the ascii value for up down left and right arrows , but nothing seems to work



function onKeyPressed(code,ctrl,shift){

                 //mygrid.editCell();

                if(code==67&&ctrl){

                    mygrid.setCSVDelimiter("\t")

                    mygrid.cellToClipboard();

                }