Added the Backspace button

Made the backspace button work for integers and decimals, also changed
some existing code such as change what integerMode does and create a new
method called newNumberMode which does what integerMode used to do.