I have successfully manage to add an accelerator to a menu item with the gtk_widget_add_accelerator() function.
What bothers me is how i can add a custom accelerator that widget.With the first command i can add a shortcut like "Ctrl + A"; but what happens if i want to use the "Up" arrow key or F1 as an accelerator?