Solves expression entered from the keyboard