window: add keyboard input events