All keyboard cables come with connectors on both ends. If you want to extend the length of your existing cable you should get an extension cable , which is male to female. Male to male cables are primarily used for connecting switchboxes.
Adapters are for converting one type of connector to a different type.
Adapter lengths are typically a few inches. Email support for technical support, product specifications,questions, etc. AT style DIN5 male on left, female on right hand side. AT style keyboard extension cables.