pretty whitelist keycode approach
fix window size on Windows 7 (most likely slight corrupts dimensions on other OSs, read note)