Added backspace handling, better handling for getting keycode
Calculate root based on equation instead of result, changed output to only display either equation or result