SDL_PeepEvents

Someone has a SDL_PeepEvents example? All the SDL code I found uses
SDL_PollEvent but I need to use SDL_PeepEvents to read keyboard events only
and leave the other events in the event queue.

Thanks

Can anyone give me an example of how this function works, it doen’t seem very clear in the docs.

thanks