Stuff for the output viewer + better key commands.