>Hi!
>
>I've encountered with following:
>Parameters Key1 and Key2 in the Keypress Event code have a similar values for different keys. For example, combinations Shift+F6 and Shift+Y have Key1=89 and Key2=1. How can I know what key has been pressed?
You can call the Win32 API function GetKeyboardState() which returns a char array that indicates the state of each key by scan code, including 'non-keystroke' keystrokes; it's listed in the API section here on UT.