Refactored keyboard input into helper class