Like this:
This adds 0.5s delay, if another key is pressed, it gets reset. I did not test it thoroughly but it should work.