Reduce sent network packets.

Check if pressed key is irrelevant to EE.
Current code send packet when pressing any key.
Merge pull request #751 from Weissmoon/master

Reduce sent network packets.