What are hardware security keys, how do they work, and which is the best?

If you use two-factor authentication (also known as 2FA) on your online accounts, you may want to switch to a hardware security key.
For those who don’t know, two-factor authentication usually works like this: When enabled on an account like Twitter, y…