right and left arrow keys
generic keyWasPressed method