Using time to pause a button

Hey guys can anyone write me a simple script that would stop the use of my “w” key for a variable time after pushing it. I want to have the button only being able to use again after a certain amount of time after pushing it.

this might help you!