You should use InputMapper instead.
InputManager = JME’s primitive input management.
InputMapper = Lemur’s more advanced input management.
This Lemur Gem uses InputMapper to control a cammera:
…you can see from there how to map keys to functions and stuff.
Edit: but note that InputMapper also has some convenience methods that use reflection:
inputMapper.addDelegate(yourFunctionId, theButton, “click”);
…might work.