Modified the way the callbackfn parameter to PygcurseSurface.input() is called so that it can access the inputobj. Also modified the event handler so that it does not allow the event stack to fill and cause the program to become unresponsive.