how to test F1, F2, F3 and etc as hotkey in a script?

I need to test a set of hot keys in the testing software, i.e. control p, control x, F1, F5, and etc., how to send F5 key to the testing software?

As seen here under “Function Keys” (http://docs.testplant.com/ePF/using/epf-typetext-keywords.htm) it should just be

Typetext f5