Scenario:
1) A plug-in turns on listening on some key strokes:
2) The player opens either the chat or the console and, while typing some text, he presses one of the listened-for keys ('X' or 'Y' in the example).
3) The plug-in is notified of those key strokes (PlayerKeyEvent).
____________________
A) Is this expected behaviour?
B) If yes, how the plug-in can detect that the key strokes are not 'played in-game' but as a textual entry and/or that player is in chat/console mode?