Adding keyboard input recognition