Added arrow key functionality. Improved reset functionality.