changed hard coded window virtual key codes with VK_xxx defines