Finally got the adjustKey method to pass any test