# Modifying the key bindings

The key bindings are modified by calling the K-function "bindKey". bindKey takes two parameters: The key sequence to bind to, and the K-code to execute.

For example:

    bindKey( "Ctrl+Z", "undo();" );

The key bindings can be modified any time, but the best way to do it would be when Kon loads, for example in the startup function in startup.k

Full description of the bindKey command