Moves trail dot code into separate file
Small cleanup in key press constants