Tidied up menu and keys, starting to use the Random class, sporadic
crashes.