The layer functions in Keras return a function. You call the layer function with the parameters you want and it returns you a function which you then invoke with the appropriate input tensor.
Here’s a thread which gives you a guided tour of the Keras Sequential and Functional APIs.