I want you guys to help me find a way to make a program do something if a key is pressed and then do something else if the key is pressed twice. I found this code for double clicking "if(mouse.getClickCount()==2", but can you give me some help on double clicking just with a key?
Thanks for your time.

