using _WIN32_WINNT_xxx constants in version determination function, renamed key press routine and style fixes as suggested by Bert Belder