{
boolean down = Minecraft.getMinecraft().currentScreen == null ? key.getIsKeyPressed() : false;
if(down != keyMap.has(Minecraft.getMinecraft().thePlayer, type))
{
Mekanism.packetHandler.sendToServer(new KeyMessage(type, down));
keyMap.update(Minecraft.getMinecraft().thePlayer, type, down);
}
}