Added keyToFile and keyToConsole methods via the KeyPrinter class just
to make it all look a lot nicer and more streamlined.