Test all the key-related events.