Allah U taught Adam u the things along with their names. These were the keys to the means.
Language is learnt through listening. Adam u had heard from Allah U directly, as in this verse:
﴾وَقُلْنَا يَا آدَمُ اسْكُنْ أَنْتَ وَزَوْجُكَ الْجَنَّةَ وَكُلا مِنْهَا رَغَداً حَيْثُ شِئْتُمَا وَلا تَقْرَبَا هَذِهِ الشَّجَرَةَ فَتَكُونَا مِنْ الظَّالِمِينَ﴿
“And We said, ‘O Adam, dwell, you and your wife, in Paradise and eat therefrom in [ease and] abundance from wherever you will. But do not approach this tree, lest you be among the wrongdoers.’”
[Surah Al-Baqarah: 35].
His God gave him the keys to the means and taught him all the names of things. This means that Allah U granted him knowledge. This was the greatest Divine gift which led to the Divine order for the angels to prostrate to him upon Allah’s U command.
Although Adam u was not able to fly, his children after him tried to fly. Their God gave them the intellect with which they manufactured aeroplanes, tanks and many other things which He subjugated to them. This led to the Divine command to honour Adam u and his children who were raised due to their intellect and knowledge.
﴾فَقَالَ أَنْبِئُونِي بِأَسْمَاءِ هَؤُلاء إِنْ كُنتُمْ صَادِقِينَ﴿
“and [He] said, ‘Inform Me of the names of these, if you are truthful.”