Make bounds dirty be default.
Ported the keyboard event dispatcher.