fixing keyboard.c for cygwin