Let console keystrokes asynchronously trigger specified functions