Make sure the connector is properly plugged into the port.
If your external keyboard won’t type anything on your Mac, do the following: How Do You Fix an Unresponsive Keyboard on a Mac? If This Issue Affects an External Keyboard
Go to an Authorized Apple Repair Center.
If This Issue Affects an External Keyboard.
How Do You Fix an Unresponsive Keyboard on a Mac?.