Have you tried the native way? Try opening xev in a console window, focus it and press the special buttons to see if they trigger actions in the console. If they do you can configure your window manager to work with then. It's probably an easier solution.