Fixed attack key pressed check and decreased event handler priority.

.. this makes it compatible with minebot.