Added callback mechanism for key bindings.