Changed GetKeyboardState() to be easier and safer to use

Signed-off-by: Jacky Boen <aqiank@gmail.com>