How can I test account events (user data stream) with a testnet account?

I can’t create a listen key from a testnet api key, the response is “wrong api key”.

If the error states “wrong api key” it’s because you really don’t have the correct API Key.
Please create at https://testnet.binance.vision/ and create the listen key according to Testnet’s base url.