M.2 is a form factor for internal expansion cards used to mount internal devices such as WiFi cards and SSD drives. They are small and have a long rectangular appearance. Here’s an M.2 SSD drive
The card’s connectors are keyed depending on which interface they’re compatible with. Here’s a summary.