WM_SIZE message and on_resize now working
added a keystate thing to windows. will cause problems if focus is taken from a window whilst a key is held down, and then released without focus (no WM_KEYUP msg sent). possible solution: GetAsyncKeyState on refocus