I believe you would have to make MouseUpHandler like this

[pascal]TPHXInputListener.getInstance.addMouseUpHandler(mo useuppro)[/pascal]
Where mouseuppro is a class procedure.

There's an example of making a KeyPressHandler in the Input Demo that should make a good reference