Fix acceleration key input bug.

refs #3.