Fixed arrow keys to work when editing.