So, I should add a keyup that gets executed before the switch windows?