if (mc.thePlayer instanceof EntityClientPlayerMP && SpoutClient.getInstance().isSpoutEnabled()) {
EntityClientPlayerMP player = (EntityClientPlayerMP) mc.thePlayer;
ScreenType screen = ScreenUtil.getType(this);
int i = Keyboard.getEventKey();
boolean keyReleased = Keyboard.getEventKeyState();
PacketKeyPress packet = new PacketKeyPress(i, keyReleased, (MovementInputFromOptions) player.movementInput, screen);
SpoutClient.getInstance().getPacketManager().sendSpoutPacket(packet);
}
((SimpleKeyBindingManager)SpoutClient.getInstance().getKeyBindingManager()).pressKey(Keyboard.getEventKey(), Keyboard.getEventKeyState(), ScreenUtil.getType(this).getCode());
// Spout End
this.handleKeyboardInput();