The program Putty will allow you to do that, you will just need to code it so if no key is pressed it sends a stop key 'w'.