How to get the actual key for Mac OS/X

For the purposes of creating a musical typing keyboard, where we show the value of the keyboard key on a virtual keyboard, I wanted to know if anyone knows how to query the Mac O/S to find out what a keyboard scan code is mapped to? The reason this is important is because many computer keyboards do not have the same mappings in different languages. This feature does not exist in JUCE as far as I can tell. I can do it on Windows via the GetKeyNameText() function .

int zeKeyTextResult = GetKeyNameText(zeKey, zeKeyText, MAX_KEYBOARD_TEXT_LEN);
if (zeKeyTextResult > 0)
    k = KeyPress(zeKeyText[0]);

Mac Gurus, how would this be done on OS/X ? And is it even possible?

Thanks for your time!