Switched to using the RawInput API for keyboard state.
Merge branch 'keyfix' into stable_BtA