Fix Tk keyboard modifier masks on Windows