Define a callback function which is called when the user started pressing a key.

gfx.SetOnKeyDown( callback )