Spread.Sheets Documentation
Key Field
GC.Spread Namespace > Commands type : Key Field
Represents the key code.
Syntax
var value; // Type: Key
value = GC.Spread.Commands.Key;
var Key : Key;
Example
//This example creates a custom action using the enter key.
var activeSheet = spread.getActiveSheet();
spread.commandManager().register('myCmd',
                function ColorAction() {
                    //Click on a cell and press the Enter key.
                    activeSheet.getCell(activeSheet.getActiveRowIndex(), activeSheet.getActiveColumnIndex()).backColor("red");
                }
            );
//Map the created action to the Enter key.
spread.commandManager().setShortcutKey('myCmd', GC.Spread.Commands.Key.enter, false, false, false, false);
See Also

Reference

Commands type