Fix for github issue 13, terrible crash on Keyboard GetState