print "Displaying key code example. Press Ctrl-Space to exit" while true Code = ReadKey if Code = 5 and CtrlModifier then ' check exit combination Exit while end if if Code <> 0 then ' something was pressed, let's display info about it InfoBox "Code: ",Code, "; Ctrl: ", CtrlModifier, "; Shift: ", ShiftModifier, "; Func: ", FuncModifier end IF wend