allows testing keyboard events