fixed input keycodes, and fixed OnKeyDownThisFrame + OnKeyUpThisFrame with  input from another thread.