added test project, fixed WndProc to check the current hotkey before exiting