How can I check if my laptop keyboard has faulty keys?

A few keys on my laptop stop responding at times, and I want to confirm which ones are failing.
Is there a simple way to test all the keys on a Brazilian layout to see which ones work and which don’t?