implement left-right arrow keys for input fields.