Extract onKeyDown & onKeyUp to delegate.
Make EventDispatcher local package.
Fix code style