You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: signing_keys_controller.rb
    path of file: ./repos/open-build-service/src/api/app/controllers/webui/projects
    
    the code of the file until where you have to start completion: module Webui
  module Projects
    class SigningKeysController < WebuiController
      before_action :set_project

      def show; end

      def download
        key = @project.signing_key(type: params[:kind])

        if key.present? && %w[gpg ssl].include?(params[:kind])
          send_data(ke
    
      def show; end

      def download
        key = @project.signing_key(type: params[:kind])

        if key.present? && %w[gpg ssl].include?(params[:kind])
          send_data(key.content, disposition: 'attachment', filename: "#{@project.name.tr(':', '_')}_key.gpg") if params[:kind] == 'gpg'
          send_data(key.content, disposition: 'attachment', filename: "#{@project.name.tr(':', '_')}_cert.pem") if params[:kind] == 'ssl'
        else
          flash[:error] = "Key not found for project #{@project.name}"
          redirect_to project_signing_keys_path(@project)
        end
      end