From the root ك ع ب (k ʕ b). Apparently unrelated to Ancient Greek κύβος (kúbos).
Practice speaking and memorizing "كعبة" and many other words and sentences in Arabic.