Unit tests: handlekeystrokes