Disable arrow keys and set line number