key_to_press = string.byte("f")
function echoKeypress(key_pressed)
if key_pressed == key_to_press then
echo("test")
--if you're using F, you might want to type "return 1" here to stop it from opening the replay saving menu
end
end
add_hook("key_down", "y_example", echoKeypress)
add_hook("key_down","",function(k) if k==102 then echo("test")end end)