Method userCanPressTab() is made safer. Now it should work in Firefox and Chrome.