I find that sometimes I have to click outside of Flash and then back in before it will recognize F1 (though it recognizes other keys). I don't recall if that behavior is linked to the chat window, however.