Fix keyboard focus issue on Windows