@Aku_Aku and Uhrwerk
ty. I already know about these functions. However i would then need to scan the modifier keys and write my own mapping(and that wouldn't be the best, because i don't know which keyboard language the user has) for every key that needs a modifier... My problem is that i'm writing a textbox control. everythinng works fine. Except for the keys that need modifiers. At the moment i'm doing everything with key_pressed:
if key_pressed("2") text.append(str_for_key(indexof "2")). of course i haven't done it exactly like this, but just for the main idea. Then, "2" is added to the textbox. However, the user may have hold down the altgr key and then it shouldn't append a "2" but an "@". Of course I could write a ffuncction that checks if altgr is hold down and then make an @ out of the 2... However the at is only on some keyboards on the same place as the 2. On others it is on the q key or somewhre else.
inchar always recognizes it corretly and it is exactly that behaviour that i need...