Remove unused variable.
Restyle input handling code.