Because well that may have been removed, the keydown command was added

.
I highly doubt that it would work for F5 though, but it would be possible to make NPC's which could be controlled by the player using keydown and some NPC commands, so that you could control them.