added key up-down events for windows