moving the key code into its own subdir