update test to use new key event api