minimizing keypresses