Add some delay after keystroke functions, fixes #1