Restrict character entry into a cell