Add event parameter to keyup event

Fix issue #7277