Project PuTTY, an MIT licensed free Telnet/SSH implementation has a window procedure for cleaning up the Alt, AltGr, and various mode key states... anyone interested might want to take a look: http://cvs.tartarus.org/putty/window.c?annotate=1.9&sortby=date Their homepage is at: http://www.chiark.greenend.org.uk/~sgtatham/putty/ Harold