I'm pretty new to Python and I am trying to detect when the f key is pressed using the keyboard library. This is the code I am trying to run
import keyboard
keyboard.on_press_key('f',here())
def here():
print('a')
However when specifying here() as the callback, I get a name not defined error on building