Moved direction logic out of the KeyDown event handler and into its own method in the SnakeUtility class.