Add logging for key presses and move the base directory.