Fixed event callback type.
Added optional debug() method for InputEvent.
Fixed name in schemes.