Update KeyGenerator.rb