Made keypresses for gestures configurable.