17.07.2015, 10:22
You cannot detect when a player presses F12. I suppose you're trying to fight against some hacking mods, there are some server side anti-cheat scripts out there, you can check them out! But, if you want a reliable client side anti-cheat you should go for the one in my signature.