Added support for left/right arrow keys and delete key