Move football key-events logic into template