Refactored the keys menu

_(refactor branch)_

What used to be 291 lines is now 182. There was a lot of duplicate code before and it took me a while to get my head around everything.

The layout and looks is the exact same apart from the text on the buttons being a lot easier to read.