While you can write your own code, there are plenty of resources available for keyboard layouts. The best I have found is a Github repository by Hasu. All you need to do is download and run the program, select the keyboard layout (GH60 for the 60% layout), and save it. Make sure that headers on the Teensy match the columns and rows on the schematic on the application. Here is the link to the Github repository.