Event support for key and mouse button.