Tweaks to input handling for Windows