Added a workaround for command key behavior so it is much less likely to have the global key manager get stuck in a state where it thinks the command key is down when it is not.