Move spaceKey Variable Declaration to top of file.