Buggy code:
public class MessageKeyPressed implements IMessage , IMessageHandler < MessageKeyPressed , IMessage > { private byte keyPressed ; public static final int ID = 0 ; public MessageKeyPressed ( ) { } public MessageKeyPressed ( int keyCode ) { } @ Override public void fromBytes ( ByteBuf buf ) { } @ Override public void toBytes ( ByteBuf buf ) { } @ Override public IMessage onMessage ( MessageKeyPressed message , MessageContext ctx ) { EntityPlayer player = ctx . getServerHandler ( ) . playerEntity ; if ( ( message . keyPressed ) == ( keyShiftUp . getKeyCode ( ) ) ) { shiftSlotUp ( player , player . inventory . currentItem ) ; } else if ( ( message . keyPressed ) == ( keyShiftDown . getKeyCode ( ) ) ) { shiftSlotDown ( player , player . inventory . currentItem ) ; } else if ( ( message . keyPressed ) == ( keyBarUp . getKeyCode ( ) ) ) { shiftSlotUp ( player , 0 ) ; shiftSlotUp ( player , 1 ) ; shiftSlotUp ( player , 2 ) ; shiftSlotUp ( player , 3 ) ; shiftSlotUp ( player , 4 ) ; shiftSlotUp ( player , 5 ) ; shiftSlotUp ( player , 6 ) ; shiftSlotUp ( player , 7 ) ; shiftSlotUp ( player , 8 ) ; } else if ( ( message . keyPressed ) == ( keyBarDown . getKeyCode ( ) ) ) { shiftSlotDown ( player , 0 ) ; shiftSlotDown ( player , 1 ) ; shiftSlotDown ( player , 2 ) ; shiftSlotDown ( player , 3 ) ; shiftSlotDown ( player , 4 ) ; shiftSlotDown ( player , 5 ) ; shiftSlotDown ( player , 6 ) ; shiftSlotDown ( player , 7 ) ; shiftSlotDown ( player , 8 ) ; } else if ( ( message . keyPressed ) == ( keyBindMacro1 . getKeyCode ( ) ) ) { CommandBindMacro . tryExecuteMacro ( player , keyBind1Name ) ; } else <START_BUG> if ( ( message . keyPressed ) == ( keyBind2 . getKeyCode ( ) ) ) { <END_BUG> CommandBindMacro . tryExecuteMacro ( player , keyBind2Name ) ; } else if ( ( message . keyPressed ) == ( keyPhasing . getKeyCode ( ) ) ) { BlockPos posMouse = Minecraft . getMinecraft ( ) . objectMouseOver . getBlockPos ( ) ; EnumFacing facing = EnumFacing . getFacingFromVector ( ( ( float ) ( player . getLookVec ( ) . xCoord ) ) , ( ( float ) ( player . getLookVec ( ) . yCoord ) ) , ( ( float ) ( player . getLookVec ( ) . zCoord ) ) ) ; System . out . println ( ( "phase<seq2seq4repair_space>" + ( facing . getName ( ) ) ) ) ; ItemWallCompass . wallPhase ( player . worldObj , player , posMouse , facing ) ; } else if ( ( message . keyPressed ) == ( keyPush . getKeyCode ( ) ) ) { BlockPos posMouse = Minecraft . getMinecraft ( ) . objectMouseOver . getBlockPos ( ) ; ItemWandPiston . moveBlockTo ( player . worldObj , player , posMouse , posMouse . offset ( player . getHorizontalFacing ( ) ) , false ) ; } else if ( ( message . keyPressed ) == ( keyPull . getKeyCode ( ) ) ) { BlockPos posMouse = Minecraft . getMinecraft ( ) . objectMouseOver . getBlockPos ( ) ; ItemWandPiston . moveBlockTo ( player . worldObj , player , posMouse , posMouse . offset ( player . getHorizontalFacing ( ) . getOpposite ( ) ) , false ) ; } else if ( ( message . keyPressed ) == ( keyTransform . getKeyCode ( ) ) ) { BlockPos posMouse = Minecraft . getMinecraft ( ) . objectMouseOver . getBlockPos ( ) ; ItemWandTransform . transformBlock ( player , player . worldObj , null , posMouse ) ; } else if ( ( message . keyPressed ) == ( keyWaterwalk . getKeyCode ( ) ) ) { int seconds = ( Reference . TICKS_PER_SEC ) * 5 ; Util . addOrMergePotionEffect ( player , new net . minecraft . potion . PotionEffect ( waterwalk . id , seconds , 0 ) ) ; } else if ( ( message . keyPressed ) == ( keyBindGhostmode . getKeyCode ( ) ) ) { ItemFoodGhost . setPlayerGhostMode ( player , player . worldObj ) ; } else if ( ( message . keyPressed ) == ( keyBindJumpboost . getKeyCode ( ) ) ) { int seconds = ( Reference . TICKS_PER_SEC ) * 3 ; Util . addOrMergePotionEffect ( player , new net . minecraft . potion . PotionEffect ( jump . id , seconds , 4 ) ) ; } else if ( ( message . keyPressed ) == ( keyBindEnder . getKeyCode ( ) ) ) { player . displayGUIChest ( player . getInventoryEnderChest ( ) ) ; } else if ( ( message . keyPressed ) == ( keyBindSlowfall . getKeyCode ( ) ) ) { int seconds = ( Reference . TICKS_PER_SEC ) * 5 ; Util . addOrMergePotionEffect ( player , new net . minecraft . potion . PotionEffect ( slowfall . id , seconds , 0 ) ) ; } return null ; } private void shiftSlotDown ( EntityPlayer player , int currentItem ) { } private void shiftSlotUp ( EntityPlayer player , int currentItem ) { } }

Fix:
if ( ( message . keyPressed ) == ( keyBindMacro2 . getKeyCode ( ) ) ) {