fixed problem with opposit keys