Following function allow only positive integer backspace del,arrows