Left, right arrow keyboard keys

I want to use the left and right arrow keys on the grid, but it doesn’t work. Whether I move to the current tab or click, the cell is opened. How can I make the cell closed

I suppose you are using the access keymap navigation:
Please, try to use the excel keymap instead:
You can also use the onKeyPress event to define your own actions:
if the problem still occurs for you could you please, provide a complete demo or a demo link, where the problem can be reconstructed locally.

i want to use keyboard key like ‘37’,‘38’,‘39’,‘40’ with onKeyPress events, enableexcelkeymap instead enableaccesskeymap
pls tell me how to implement code

Could you please, clarify your issue?
What navigation type do you prefer to use?
For now I cannot get the desired behavior.