Minecraft get focus only works with java 1.6... So let's use that then.