IE7 not completing jQuery FadeTo whilst 'keydown'

IE7 not completing jQuery FadeTo whilst 'keydown'

I currently have 3 jQuery events assigned to the document keydown, keyup and click.

Here is my code:
var logkeydown = false;
$(function(){
   $(document).keydown(function(e){
      var key; e?key=e.keyCode:key=event.keyCode;
      if(key==69) logkeydown=true
   });
   $(document).keyup(function(e){
      var key; e?key=e.keyCode:key=event.keyCode;
      if(key==69) logkeydown=false
   });
   $(document).click(function(e){
      if(logkeydown) tb_show(null,'#TB_inline?height=200&width=250&inlineId=hiddenModalContent',false)
   });
});


They toggle the boolean value of whether the keyboard key 'e' is currently pressed. If so, when the user clicks any of the site, I have a Thickbox fading in.
This works great in Firefox and Safari, but IE7 begins to fade in the Thickbox (btw, I slightly altered the thickbox code to fade it in/out) but halts half-fade until the 'e' key is released.

Is there code to override what I believe is a bubbling issue with IE7?

Regards,
Rhys