Added support for bat execution on keypress