Update key.rb

Added compressed address function because it is more useful.