set key define in java mode